Skip to content

fs.readFile with encoding as 2nd argument is not documented #1797

@rla

Description

@rla

It is very common to call fs.readFile with the encoding name directly as the 2nd argument. Like

fs.readFile('my_file.txt', 'utf8', cb)

Yet this call signature is not clearly documented:

https://iojs.org/api/fs.html#fs_fs_readfile_filename_options_callback (link date 2015-05-26)

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to the documentations.fsIssues and PRs related to the fs subsystem / file system.good first issueIssues that are suitable for first-time contributors.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions