Skip to content

Instantly share code, notes, and snippets.

@rahulbanerjee26
Created June 22, 2022 03:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rahulbanerjee26/c78f0339cc8e70d575dbec9edc45211d to your computer and use it in GitHub Desktop.
Save rahulbanerjee26/c78f0339cc8e70d575dbec9edc45211d to your computer and use it in GitHub Desktop.
const fileSystem = require('fs');
const data = "File written using a server side module";
fileSystem.writeFile('content.txt',data , err =>{
if(err){
console.error(err);
return;
}
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment