Explain the use of File System API in Apache Spark.
The File System API in Spark provides a unified interface to interact with different file systems. It allows reading, writing, and manipulating files stored in various file systems like HDFS, S3, local file systems, and more. The File System API abstracts the underlying file system details and provides a consistent way to access and operate on files, directories, and partitions.
