Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to right plain text format file in node js

var fs = require('fs')
fs.appendFile('log.txt', 'new data', function (err) {
  if (err) {
    // append failed
  } else {
    // done
  }
})
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #plain #text #format #file #node #js
ADD COMMENT
Topic
Name
7+1 =