The File library provides methods for reading, writing, and traversing the filesystem.
File.read(path)- Synchronously reads and returns a text file's contents as a string.File.write(path, data)- Synchronously writes a stringdatato the requested text file path. Returnstrueon success.File.readBytes(path)- Synchronously reads a file containing binary data (like images or audio) and returns it as an array of bytes.File.exists(path)- Checks if a file or directory exists. Returns a boolean.File.list(directory)- Returns an array of file and directory names contained within the requested folder path.