Next Topic

Previous Topic

Book Contents

Read

string,int Read(int iSize)

Return values

A string if the function is successful and iSize is set to the size of the returned data; otherwise nil, and a specific error code can be retrieved by calling global function GetLastError.

Parameters

  • iSize - Size of data to be read in bytes.

Remarks

The function will read the specified size of data from the file and move the file pointer forward the same amount. If end of file is reached the read will stop and return the data read until end of file was reached.