NOTE #
Syntax: NOTE #channel, offset
- channel
- Channel is a integer value between 0 and 9. A channel is associated with a specific file when a file is opened.
- offset
- This is a integer variable where the NOTE command stores the current offset in the file. An offset of 0 indicates the start of the file.
. File offsets are zero based – i.e. The first byte in a file is located at offset 0. The POINT command is used to move to a specific byte in a file.
NOTE is used to obtain the current file offset. The returned value is the offset where the next read or write will occur. The NOTE and POINT commands are used together to perform Random Access File I/O.
Important Note: Earlier versions of Mobile BASIC (1.4 and earlier) were record orientated. The values returned by NOTE and POINT indicated the record number. You could only select which record to read/write - not the specific byte within the record.
|