Skip to content

Instantly share code, notes, and snippets.

@kieran
Created May 5, 2010 22:18
Show Gist options
  • Save kieran/391531 to your computer and use it in GitHub Desktop.
Save kieran/391531 to your computer and use it in GitHub Desktop.
var fs = require('fs')
fs.open(file, process.O_WRONLY, 0666, function(err,fd){
if (err) return sys.puts(sys.inspect(err));
fd.write(msgs.join("\n"))
msgs = [];
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment