[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Applesoft Basic Question



I've got my old Applesoft Basic book out and my Dos manual and I'm still
stumped.

I've got a small routine that reads a DOS 3.3 file off of a disk and
converts it to a text file and writes it back.  Input statements are
provided for the name of the incoming file and for your choice of names
for the outgoing file.

Problem is that it directs all disk operations to S6,D1.

I have a large number of files to process, and the disk swapping is
slowing me down.  I'd like to have the program read the file from S6,D1
and write it to S6,D2; but darn it I can't seem to parse the statements
to make it work.  It seems that it should be something like:

100 D$=CHR$(4)
110 PRINT D$;"BLOAD"A$;S6,D1

and later
120 PRINT D$;"OPEN"T$;S6,D2
130 PRINT D$;"WRITE"T$;S6,D2

where A$ and T$ are the input names of the respective files but dad gum
it it just won't work'; the ONERR statement keeps bombing me out.
Got to be a simple answer but I just can't see it.

     () ()
Rich ('-')