Fixes issue #32

This commit is contained in:
Ryan McGrath 2012-11-09 05:20:15 -05:00
parent 04d6db164e
commit 676e210fc4
2 changed files with 8 additions and 1 deletions

View file

@ -369,6 +369,10 @@ exports.LineReader = function(filename, bufferSize) {
};
exports.LineReader.prototype = {
close: function() {
return fs.closeSync(this.fd);
},
getBufferAndSetCurrentPosition: function(position) {
var res = fs.readSync(this.fd, this.bufferSize, position, "ascii");