GET

Top  Previous  Next

Syntax

GET(vFile as BFILE,record as INT,var as POINTER)

Description

Gets one record from the random access binary file vFile and stores the result in the variable var. record must be greater than zero and the file must have been opened by OPENFILE. var can be any built-in or user defined variable type. Use EOF to determine when end of file has been reached.

Parameters

vFile - A binary file opened with the OPENFILE function.

record - The ones based record number.

var - Any built in or user defined type.

Return value

None

Remarks

See Also: OPENFILE, PUT

Example usage

GET myfile, 20, phone_data