Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

fs.appendFileSync in nodeJs

var fs = require('fs');

try {
  fs.appendFileSync('message.txt', 'data to append');
  console.log('The "data to append" was appended to file!');
} catch (err) {
  /* Handle the error */
}
 
PREVIOUS NEXT
Tagged: #nodeJs
ADD COMMENT
Topic
Name
2+1 =