I really find the Commodore BASIC syntax for file open and such quite confusing
and overly complicated. So...... I'm learning it.. and at the same time
ensuring I can forget most of it by creating GOSUB wrappers.
IF I WAS A DISCIPLINED PROGRAMMER (Lol...lol).. I would be writing down
variable definitions and at least a rough flow-chart right now... (Not happening
![Smile :)](./images/smilies/icon_e_smile.gif)
I do have a rough sketch in my mind how this is going to go.
Current variable defs in mind... :
(SUGGESTIONS)
F1$-F9$ --- Used to pass file and Directory names to GOSUB's
EM$ -- Current Error Message (This is following the COMMODORE 1541 Docs)
CE -- The current error number
PE -- The previous error number. (possibly a ERROR "STACK" if I find it necessary).
FS -- Operation SUCCESS. Set to 1 by GOSUB if the operation was successful, 0 otherwise
(yes I know the ST System Variable exists. I'm trying to Abstract it)
FC -- File Count... Used if GOSUB manipulates multiple files...
O1$-O9$ -- Hold the filenames of currently open files
TF -- TRY FORCE -- If set to 1 Try to force the desired operation through errors... The main
use I see for this is to "SCRATCH" an existing file before OPEN for Write.
EE -- END ERROR -- Kind of the opposite. Will END the program on any File I/O error if set to 1
May leave this in the code but it's really there because I know these routines are going to take "A LOT"
of testing.