The Standard LibraryfsMethodsreadOn this pagereadRead the contents of a file. read("path/to/your/file"); Syntax read(path) Returns The contents of the file as a string on success. Undefined when the file cannot be read. Notes Expects a path to a FILE, not a directory.