writing streams in node js

PHOTO EMBED

Tue Aug 31 2021 01:55:22 GMT+0000 (UTC)

Saved by @faisals #node #filesystem

const fs = require('fs')
 
const fileStream = fs.createWriteStream('output.txt');
 
fileStream.write('This is the first line!'); 
fileStream.write('This is the second line!');
fileStream.end();
content_copyCOPY