Skip to content

Instantly share code, notes, and snippets.

@xk xk/nodejs.js forked from niklasfi/nodejs
Created Jan 27, 2011

Embed
What would you like to do?
var k= require('constants');
var fs = require('fs')
var b = new Buffer('AAAAAAAAAA');
fs.open('./f', k.O_WRONLY, 0666 , cb);
function cb (err, fd) {
fs.write(fd,b,0,10,10);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.