ReadInteger

Declaration: TILabFStream.ReadInteger(var error: boolean): integer;
The function ReadInteger reads a (binary) integer value (4 bytes) from the current stream position. On return, ReadInteger provides the corresponding integer number; the property Position of the stream points to the first byte after the scanned number. If the variable parameter error returns TRUE this indicates an error during stream read (i.e. the end of the stream has been encountered prematurely).

Hint: In order to avoid reading data beyond the end of the stream, the user should call the function Eos before reading the stream data. Reading beyond the end of the stream will raise an exception.