Skip to end of banner
Go to start of banner

fileReadLine

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 15 Current »

Description

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

Parameters

Return Type

String

Error Handling

Throws String

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

Example

Example 1

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

Returns: ABCDEFGHIJKLMNOPQRSTUVWXYZ

See also

Filter by label

There are no items with the selected labels at this time.

  • No labels