Fixes issue #32
This commit is contained in:
parent
04d6db164e
commit
676e210fc4
2 changed files with 8 additions and 1 deletions
|
|
@ -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");
|
||||
|
||||
|
|
|
|||
Reference in a new issue