FREAD

Syntax

Example

Description/Remarks

FREAD file_number

FREAD 3 returns the value of field 1 and sets the text buffer to the line read from file 3.

Reads a line of data from a specified file, places the line of data in the text buffer, and returns the value of FIELD 1. If you want to return the entire line of data (and not just the first number found), use the PBUFF command.

The file_number is an integer from 1 to 10 assigning a number to the file. The file number was specified by the FOPEN command.