-
-
Notifications
You must be signed in to change notification settings - Fork 37.2k
fs.readFile don't work with file descriptor #5862
Copy link
Copy link
Closed
Labels
docIssues and PRs related to Node.js documentation.Issues and PRs related to Node.js documentation.fsIssues and PRs related to file-system APIs and the fs module.Issues and PRs related to file-system APIs and the fs module.
Description
Activity
Metadata
Metadata
Assignees
Labels
docIssues and PRs related to Node.js documentation.Issues and PRs related to Node.js documentation.fsIssues and PRs related to file-system APIs and the fs module.Issues and PRs related to file-system APIs and the fs module.
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: