Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Excerpt
hiddentrue
Reads a line of text from an open file until it reaches the end of the line (\n or \r\n). Stops also on EOF (end of file).

Reads a line of text from an open file until it reaches the end of the line (\n or \r\n).

...

Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

Parameter name

Type

Required

Description

fid

String

Yes

The id of the open file to read from.

Return Type

String

Error Handling

Throws String

"eof": if you read past the end of the file|"read_error": followed by the actual error if read fails

Example

Example 1

Code Block
languagejs
use "file";

int fid = fileOpen("C:\alphabet.txt");
runnerLog(fileReadLine(fid));
close(fid);

...