Difference between revisions of "File handling in SpecBAS"

From SinclairFAQ
Jump to: navigation, search
Line 7: Line 7:
 
==Program files==
 
==Program files==
  
Using SAVE "filename" saves your BASIC listing as a SpecBAS program file. LOAD "filename" is used to retrieve the saved program. SpecBAS saves your work whenever you enter or alter a program line, and the RECOVER command will load in the last saved backup. Programs can be set to auto-execute using a LINE number. eg. SAVE "filename" LINE 10 . If LINE is present, then it will be saved with a flag to execute the program from that line when loaded.
+
Using '''SAVE "filename"''' saves your BASIC listing as a SpecBAS program file. '''LOAD "filename"''' is used to retrieve the saved program. SpecBAS saves your work whenever you enter or alter a program line, and the RECOVER command will load in the last saved backup. Programs can be set to auto-execute using a LINE number. eg. '''SAVE "filename" LINE 10''' . If LINE is present, then it will be saved with a flag to execute the program from that line when loaded.
  
MERGE "filename" merges the program specified by the filename into the current program. Lines that have the same line number as lines already present in the current program will replace those lines, otherwise they will be inserted in numerical order.
+
'''MERGE "filename"''' merges the program specified by the filename into the current program. Lines that have the same line number as lines already present in the current program will replace those lines, otherwise they will be inserted in numerical order.
  
 
==ZXASCII==
 
==ZXASCII==

Revision as of 02:27, 14 January 2011


Dealing with files and file types in SpecBAS - *page is incomplete*

File system

Program files

Using SAVE "filename" saves your BASIC listing as a SpecBAS program file. LOAD "filename" is used to retrieve the saved program. SpecBAS saves your work whenever you enter or alter a program line, and the RECOVER command will load in the last saved backup. Programs can be set to auto-execute using a LINE number. eg. SAVE "filename" LINE 10 . If LINE is present, then it will be saved with a flag to execute the program from that line when loaded.

MERGE "filename" merges the program specified by the filename into the current program. Lines that have the same line number as lines already present in the current program will replace those lines, otherwise they will be inserted in numerical order.

ZXASCII

Banks

Supported file formats