GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — docs: fs - remove encoding list and link to buffer · nodejs/node@2e38079

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • fs.markdown
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/fs.markdown‎

Copy file name to clipboardExpand all lines: doc/api/fs.markdown
+2-3Lines changed: 2 additions & 3 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ default value of 64 kb for the same parameter.
828828

829829
`options` can include `start` and `end` values to read a range of bytes from
830830
the file instead of the entire file. Both `start` and `end` are inclusive and
831-
start at 0. The `encoding` can be `'utf8'`, `'ascii'`, or `'base64'`.
831+
start at 0. The `encoding` can be any one of those accepted by [Buffer](buffer.html).
832832

833833
If `fd` is specified, `ReadStream` will ignore the `path` argument and will use
834834
the specified file descriptor. This means that no `open` event will be emitted.
@@ -873,8 +873,7 @@ Returns a new WriteStream object (See `Writable Stream`).
873873
`options` may also include a `start` option to allow writing data at
874874
some position past the beginning of the file. Modifying a file rather
875875
than replacing it may require a `flags` mode of `r+` rather than the
876-
default mode `w`. The `defaultEncoding` can be `'utf8'`, `'ascii'`, `binary`,
877-
or `'base64'`.
876+
default mode `w`. The `defaultEncoding` can be any one of those accepted by [Buffer](buffer.html).
878877

879878
Like `ReadStream` above, if `fd` is specified, `WriteStream` will ignore the
880879
`path` argument and will use the specified file descriptor. This means that no

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.