diff --git a/doc/api/fs.md b/doc/api/fs.md index b3af66364b1cbb..59a971c97b8d6a 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -2547,14 +2547,18 @@ fs.readFile('', (err, data) => { }); ``` -Any specified file descriptor has to support reading. - -If a file descriptor is specified as the `path`, it will not be closed -automatically. - The `fs.readFile()` function buffers the entire file. To minimize memory costs, when possible prefer streaming via `fs.createReadStream()`. +### File Descriptors +1. Any specified file descriptor has to support reading. +2. If a file descriptor is specified as the `path`, it will not be closed +automatically. +3. The reading will begin at the current position. For example, if the file +already had `'Hello World`' and six bytes are read with the file descriptor, +the call to `fs.readFile()` with the same file descriptor, would give +`'World'`, rather than `'Hello World'`. + ## fs.readFileSync(path[, options])