Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

read files in node js

const fs = require("fs");
const text = fs.readFileSync("dele.txt", "utf-8")
console.log("The content of the file is")
console.log(text);
Source by codewithharry.com #
 
PREVIOUS NEXT
Tagged: #read #files #node #js
ADD COMMENT
Topic
Name
9+2 =