OPEN

SmallBASIC syntax groups: 


File command OPEN


10
20  OPEN file [FOR {INPUT|OUTPUT|APPEND}] AS #fileN
30
Makes a file or device available for sequential input, sequential output.


See examples


If there is insufficient information on this page and you wish learn more about OPEN, please send an email to smallbasic@gmail.com. You can help to improve information about OPEN by submitting an article using the comments link below. Note, an offline language reference text file is now avialable – see the Download section.

  • file – A string expression that follows OS file naming conventions.
  • fileN – A file-handle (integer 1 to 256).
FOR
INPUT Sequential input
OUTPUT Sequential output
APPEND Sequential output, beginning at current EOF

The files are always opened as shared.