Romfile.Getdata Method

Top  Previous  Next

 

Function:

Reads data from a currently opened resource (ROM) file.

Syntax:

romfile.getdata(maxinplen as byte) as string

Returns:

String containing a part of the ROM file's data

See Also:

Romfile Object

 


Part

Description

maxinplen

Maximum input length -- number of characters to read from the file.

Details

Readout size is limited by three factors (whichever is smaller): capacity of the receiving string, the amount of remaining data in the file (from current position- see the romfile.pointer), and maxinplen parameter. Current position is moved forward by the actual number of bytes that was read out.

note_warning-wt

The romfile object can only access first 65534 bytes of each file. This is because the romfile.pointer is a variable of word type. This method will also work only within this limit.