Skip to content

Instantly share code, notes, and snippets.

@tim-smart
Created June 19, 2013 05:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tim-smart/5811804 to your computer and use it in GitHub Desktop.
Save tim-smart/5811804 to your computer and use it in GitHub Desktop.
var fs = require('fs')
var ws = new fs.WriteStream('test.out')
ws.write(new Buffer('test'))
ws.write(new Buffer([]))
ws.end(function () {
console.log('end')
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment