Skip to content

Instantly share code, notes, and snippets.

@baudehlo
Created October 20, 2011 16:55
Show Gist options
  • Save baudehlo/1301644 to your computer and use it in GitHub Desktop.
Save baudehlo/1301644 to your computer and use it in GitHub Desktop.
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