-
-
Notifications
You must be signed in to change notification settings - Fork 35.3k
Omission in the fs doc #7099
Copy link
Copy link
Closed
Labels
docIssues and PRs related to the documentations.Issues and PRs related to the documentations.fsIssues and PRs related to the fs subsystem / file system.Issues and PRs related to the fs subsystem / file system.good first issueIssues that are suitable for first-time contributors.Issues that are suitable for first-time contributors.
Metadata
Metadata
Assignees
Labels
docIssues and PRs related to the documentations.Issues and PRs related to the documentations.fsIssues and PRs related to the fs subsystem / file system.Issues and PRs related to the fs subsystem / file system.good first issueIssues that are suitable for first-time contributors.Issues that are suitable for first-time contributors.
Sometimes I use the same file descriptor for writing and then reading by
readline(possible case: write some data line by line, then reread it into an array to sort and rewrite).It seems
fsdoc lacks for some point concerning these cases.fs.createReadStream(path[, options]):
Maybe it should be mentioned that
startis set by default to the file end (or to the write position) for fd that has been previously written into.Test:
The output is only
The output contains all the file: