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 number of characters to read from the file.

Details

The actual return string length is limited by three factors, whichever is smaller: the capacity of the receiving string, the amount of remaining data in the file (romfile.size+1-romfile.pointer), and the maxinplen argument.

Invoking this method moves the current pointer position forward by the actual number of bytes read.