-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
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.readFile don't work with file descriptor #5862
Comments
File descriptor support was added with #3163 and it was decided at that time not to backport this change to LTS. This is actually an error in the documentation that was introduced by 3a8f4b2 |
FWIW, I have verified that the code runs correctly on v5. |
nodejs#5862 removed irrelevant data about fs.readFile
nodejs#5862 removed irrelevant data about fs.readFile
@jasnell I would :) |
nodejs#5862 removed irrelevant data about fs.readFile
nodejs#5862 removed irrelevant data about fs.writeFile and fs.appendFile
fs.readFile, fs.writeFile and fs.appendFile doc changes pulled back from master included details not relevant to v4. PR-URL: #5877 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Michaël Zasso <mic.besace@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
fs.readFile, fs.writeFile and fs.appendFile doc changes pulled back from master included details not relevant to v4. PR-URL: #5877 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Michaël Zasso <mic.besace@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
fs.readFile, fs.writeFile and fs.appendFile doc changes pulled back from master included details not relevant to v4. PR-URL: #5877 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Michaël Zasso <mic.besace@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Function fs.readFile should understand both file name and file descriptor as the first argument, it's specified in docs for Node.js v4.x.
I try to use code like this:
And I got that output:
My software version:
The text was updated successfully, but these errors were encountered: