Answers for "node appendFile sync"

0

node appendFile sync

//Name of the file : appendfile-sync.js
//file append operation in nodejs
var fs = require('fs');
var content = "We are Appending this file synchronously using node.js";
fs.appendFileSync('assets/new.txt', content);
console.log("File Appended Successfully");
Posted by: Guest on August-13-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language