We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fs.read(fd, buf, 0, buf.length, stat.size-buf.length-i, function(err, bytesRead, buffer) { if(err) {console.log(err);throw err;} buffer.copy(lastlinebuffer,position, 0,1); position++; if(position>100000)console.log("文件最后行太长超出缓存区"); if (buffer[0] === 0x0a) { //0x0a == '\n' { [Error: EINVAL, read] errno: -4071, code: 'EINVAL' } Error: EINVAL, read at Error (native)
The text was updated successfully, but these errors were encountered:
What are the values being passed to fs.read() when the error occurs?
fs.read()
Sorry, something went wrong.
No follow up. Closing. We can reopen if necessary.
No branches or pull requests
The text was updated successfully, but these errors were encountered: