zeek64.js, zeek64.txt and zeek.txt
zeek64.js
//In Node.js, Modules are the blocks of encapsulated code that communicates with an
external application on the basis of their related functionality. All of these module
systems have one thing in common: they allow you to import and export stuff.
//fs means file system.
const fs= require("fs");
let text = fs.readFileSync("zeek64.txt","utf-8");
text= text.replace("WE","Zeeshan");
console.log(text);
console.log("Creating a new file by name zeek.txt");
fs.writeFileSync("zeek.txt",text);
zeek64.txt
WE are using this text to learn node js modules in zeek64.js in Visual Studio code.
zeek.txt
Zeeshan are using this text to learn node js modules in zeek64.js in Visual Studio code.
Comments
Post a Comment