fs.read

fs.read

fs.read

Function

Read text file contents.

Syntax

Parameters

No parameters.

Return value

TypeDescription
StringReturns the UTF-8 text content of the file.

Example

Notes

  • Throw Chinese error when reading fails.
  • This method reads as UTF-8 text.