read the file. 4. const content = fs.readFileSync("./my_file.txt");. 5. // print it. 6. console.log(content.toString());. nodejs readfile.
確定! 回上一頁