Advertisement
AnindyaBiswas

append

May 16th, 2023
628
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var fs = require('fs');
  2.  
  3. var data = "\n\nThis part is added using fs.appendFile().";
  4.  
  5. fs.appendFile("Text.txt", data, function(err){
  6.  
  7.     if(err) throw err;
  8.    
  9.     console.log("File appended successfully!");
  10.  
  11.  
  12. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement