fs.writefilesync vs fs.writefile code example Example: const fs = require("fs") fs.writeFileSync('read.txt' , "hello world ") hello world