node appendfile sync

Solutions on MaxInterview for node appendfile sync by the best coders in the world

showing results for - "node appendfile sync"
Pia
07 Jun 2019
1													
2//Name of the file : appendfile-sync.js
3//file append operation in nodejs
4var fs = require('fs');
5var content = "We are Appending this file synchronously using node.js";
6fs.appendFileSync('assets/new.txt', content);
7console.log("File Appended Successfully");
8													
9