Read/Write Strings to Filebuffer (Text)
FBINIT
FBSTRING$(RC%[,del%=1])
FBSTORE s$[,del%=1]
These procedures allow an easy sequential access to the filebuffer for textmode files.
FBINIT initializes the access and resets the internal pointer.
FBSTRING$ delivers the next line from filebuffer. The variable parameter RC equals 1 after return, if no more lines are available, 0 otherwise.
FBSTORE stores the given string as line (with linefeed) to filebuffer. The optional parameter del controls, which character to use as delimiter of the strings/lines:
del | Delimiters | Example usage |
1 | Carriage return | Memo |
2 | Next (0xfe) | Contacts |
3 | Next and Carriage return |
|