Created
March 12, 2012 02:53
-
-
Save vmu9999/2019428 to your computer and use it in GitHub Desktop.
node.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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