379
TIDE and Tibbo BASIC User Manual
©2000-2008 Tibbo Technology Inc.
8.3.7.4
.Open Method
Function:
Opens or re-opens a resource (ROM) file.
Syntax:
romfile.open(byref filename as string)
Returns:
---
See Also:
Part
Description
filename
Name of the ROM file to open.
Details
Only one ROM file can be opened at any given time. If the file exists and is not
empty the
is set to 0 each time you use the romfile.open
method. If the file does not exist of is empty the romfile.pointer is set to 0. There
is no method (or need) to explicitely close the ROM file.
8.3.7.5
.Pointer Property
Function:
Sets/returns current (pointer) position in the resource
(ROM) file.
Type:
Word
Value Range:
See explanation below
See Also:
Details
When the file is (re)opened with the
method, the pointer is reset
to the first character of the file (position 1), except when the file is not found or
contains no data, in which case the pointer will permanently be equal to 0. Pointer
position cannot exceed file size (see the
property). When you read
from the file using the
method the pointer is automatically
moved forward by the number of characters that have been read out.
The romfile object can only access first 65534 bytes of each file. This is
because the romfile.pointer is a variable of word type.
8.3.7.6
.Size R/O Property
Function:
Returns the size of currently opened resource (ROM) file.
Type:
Word
375
379
379
375
379
379
378