var str = fs.readFile('foo.txt', 'utf8', function(err, data){ if (err) throw err; ......... }); Will convert the Buffer into a String.
確定! 回上一頁