Anonymous

File handling in SpecBAS: Difference between revisions

From Sinclair Wiki
no edit summary
No edit summary
No edit summary
Line 13: Line 13:
==ZXASCII==
==ZXASCII==


SAVE filename$ [[ASCII] LINE numexpr]
'''SAVE "filename" [[ASCII] LINE numexpr]'''


==Banks==
==Banks==
'''LOAD "filename" BANK <id|numvar>''' Loads the file specified in the string expression to a memory bank. If the ID number is specified, the bank will be overwritten (if it exists) and created with that ID number if not. If no ID number is specified, one will be chosen for you, and loaded into the numeric variable.
'''SAVE "filename" BANK id''' Saves a bank specified by the id number to a file. Any bank can be saved, regardless of how it was created – whether as a FONT bank, a SCREEN bank or whatever.
Loading and saving banks provides a powerful way of importing and exporting data stored in any format. etc


==Supported file formats==
==Supported file formats==
62

edits