Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

read file node

// load fs
const fs = require("fs");
// read the file
const content = fs.readFileSync("./my_file.txt");
// print it
console.log(content.toString());
 
PREVIOUS NEXT
Tagged: #read #file #node
ADD COMMENT
Topic
Name
5+8 =