OWBasic for Pocketviewer

Home INTRO Group FLASH Alphabetical Index

Internal file buffer

There exists only one buffer for files in OWBasic, so that at every moment only one file can be loaded, worked on and stored. All procedures which load or store data in file records work with this buffer and destroy thereby previous contents.

The lowlevel file procedures LOADFILE and SAVEFILE load files to this buffer or store this buffer into a file.

There exist procedures for reading/writing dates and times ( FBDATE), reading/writing text ( FBSTRING) and reading/writing binary data( FBBBYTE).

Bytewise access to this memory takes place through a special array FILEBUFFER. It can be read randomly as FILEBUFFER[i], but can be written only in assignments.

Example:
 c=FILEBUFFER[5]
 PRINT FILEBUFFER[6]
 FILEBUFFER[4]=125
but not
 INPUT FILEBUFFER[3]: ! Syntax error !
Use the procedures and functions FBSTRING etc. for easier sequential access.


  • FBSTRING - Read/Write Strings to Filebuffer (Text)
  • FBBBYTE - Read and Write Filebuffer (Binary)
Home INTRO Group FLASH Alphabetical Index