Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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");
													
												
Source by www.nodejsera.com #
 
PREVIOUS NEXT
Tagged: #node #appendFile #sync
ADD COMMENT
Topic
Name
5+3 =