Skip to content

Instantly share code, notes, and snippets.

@vmu9999
Created March 12, 2012 02:53
Show Gist options
  • Save vmu9999/2019428 to your computer and use it in GitHub Desktop.
Save vmu9999/2019428 to your computer and use it in GitHub Desktop.
node.js
var fs = require('fs')
, sys = require('sys');
fs.readFile('treasure-chamber-report.txt', function(report) {
sys.puts("oh, look at all my money: "+report);
});
fs.writeFile('letter-to-princess.txt', '...', function() {
sys.puts("can't wait to hear back from her!");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment