Ende.writeTextFileSync
function ยท requires --allow-read, --allow-write
function Ende.writeTextFileSync(path: string | URL, data: string, options?: WriteFileOptions): voidSynchronously write string data to the given path, by default creating
a new file if needed, else overwriting.
Ende.writeTextFileSync("hello1.txt", "Hello world\n"); // overwrite "hello1.txt" or create it
As with Ende.writeTextFile, the data is written and the file is
closed, but this does not guarantee the contents have been flushed from the
operating system's buffers to the physical storage device. If you need such
a durability guarantee, open the file with Ende.openSync and
call Ende.FsFile.syncSync before closing it.
Requires allow-write permission, and allow-read if options.create is
false.