Created
February 8, 2012 21:39
-
-
Save lloyd/1774098 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
const fs = require('fs'); | |
var s = fs.ReadStream("./dialog.orig.js"); | |
var buf; | |
s.on('data', function(chunk) { | |
if (buf) buf += chunk; | |
else buf = chunk; | |
}); | |
s.on('end', function() { | |
console.log(buf); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment