readFileSync 方法用于同步读取文件,返回一个字符串。 var text = fs. ... writeFile('message.txt', 'Hello Node.js', 'utf8', callback);.
確定! 回上一頁