ReadFromFile (open)

Read from a file on disk, moving the file pointer while reading

Syntax

LOADLIB "wh::files.whlib";

STRING FUNCTION ReadFromFile(INTEGER filehandle, INTEGER64 numbytes)

Parameters

INTEGER filehandle

ID of file, as returned by OpenBlobAsFile, OpenDiskFile or CreateDiskFile

INTEGER64 numbytes

Number of bytes to read

Return value

STRING

Data read from the file