Code :
var fs = require('fs')
fs.readFile('readExcel.js','utf8',function(err,data){
console.log(data);
});
fs.writeFile('write.js',"console.log('File created')",function(err){
console.log("Data is saved");
});
fs.appendFile('write.js',"console.log('File created')",function(err){
console.log("Data is saved");
});
fs.unlink('write.js',function(err){
console.log("File Deleted");
});
Apply the scenarios individually as shown in the video
Video Tags:
0:00 - Introduction of FSO in javascript
1:01- Read File Method with example
3:11 - Write File Method with example
6:04 - Append File Method with example
6:59 - Unlink File Method with example
8:33 - End Tags and subscription to the channel
Next Steps :
---------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------
Must Watch Playlists
► 1. Javascript - • Javascript Factory
► 2. Puppetter - • Puppeteer
► 3. Cypress - • Cypress
► 4. Tech works - • Video
► 5. Vbscript Basics To Advanced - • VBScript Part 1 - Features Advantage...
► 6. Jmeter - • Jmeter Tutorials
► 7. Excel - • Videos On Excel
---------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------
#FileSystem
#ReadAndWriteFiles
#FSO