var fs = require("fs"), s = fs.createReadStream(__filename), l = 8192, b = new Buffer(l); s.on("open", function() { fs.read(s.fd, b, 0, l, function (err, nbytes) { console.log( "err: " + err + ", " + "nbytes: " + nbytes + ", " + "buf: " + b.toString(0, nbytes)); }); });
--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en