Skip to content

Instantly share code, notes, and snippets.

@Mayankgupta688
Created April 11, 2020 09:01
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 Mayankgupta688/e5a87dc2b2e965ee550bd68d2cd71bf0 to your computer and use it in GitHub Desktop.
Save Mayankgupta688/e5a87dc2b2e965ee550bd68d2cd71bf0 to your computer and use it in GitHub Desktop.
var fs = require("fs");
var writableStream = fs.createWriteStream("./sampleFile.txt");
writableStream.write("This is Sample Data. ");
writableStream.write("This is Other Data. ");
console.log("Check File 'sampleFile.txt' for the Steam Data");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment