Created
October 20, 2011 16:55
-
-
Save baudehlo/1301644 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
var fs = require('fs'); | |
var log = fs.createWriteStream("/tmp/log.txt"); | |
for (var i=0; i<15000; i++) { | |
var result = log.write(i + "\n", "utf8"); | |
if (!result) { | |
console.log("buffer full..."); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment