The Standard LibraryfsMethodswriteOn this pagewriteWrite to a file. write("path/to/your/file", "Hello!"); Syntax write(path, data) Returns Undefined. Notes Expects a path to a FILE, not a directory. Will overwrite any existing data in the file. Will create the file if it doesn't exist.