hello node.js 你好 node.js
var fs = require('fs'); fs.readFile('./hello.txt', function(error, data) { console.log(data.toString()); })
var fs = require('fs'); fs.writeFile('./hello.txt', 'hello javascript', function(error) { console.log(error) });