OWBasic for Pocketviewer

Home INTRO Group FILEBUFFER Alphabetical Index

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:


delDelimitersExample usage
1Carriage returnMemo
2Next (0xfe)Contacts
3Next and Carriage return


Home INTRO Group FILEBUFFER Alphabetical Index