Node.js: Syncronously read a file into a string · var fs = require('fs'); · var file = fs.readFileSync(path, "utf8"); · console.log(file);.
確定! 回上一頁