Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var fs = require('fs');
- var data = "\n\nThis part is added using fs.appendFile().";
- fs.appendFile("Text.txt", data, function(err){
- if(err) throw err;
- console.log("File appended successfully!");
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement