Node.js fs write sync text file

Description

Node.js fs write sync text file


var fs = require("fs");

console.log("\nwriting to file 'write_sync.txt' ...\n");

// write to file synchoronously
fs.writeFileSync("./files/write_sync.txt", "Writing Synchoronous!");

console.log("done!\n");



PreviousNext

Related