Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

write buffer to file in node

fs = require('fs');
fs.writeFile('helloworld.txt', 'Hello World!', function (err) {
  if (err) return console.log(err);
  console.log('Hello World > helloworld.txt');
});
Source by nodejs.org #
 
PREVIOUS NEXT
Tagged: #write #buffer #file #node
ADD COMMENT
Topic
Name
8+1 =