[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AppleSoft Basic Question
In <1992Nov7.071014.13355@vela.acs.oakland.edu>
mkheintz@vela.acs.oakland.edu (Michael Heintz) writes:
>I remember reading a trick to convert an AppleSoft basic program to a text
>file so it could be printed out with a word processor. Can anyone help me
>out with the method required to do this trick? Somehow I lost the article.
Go into BASIC and LOAD the program you want to convert. Then add the
following line:
0 ? CHR$(4)"OPEN PROGRAM.TXT":? CHR$(4)"WRITE PROGRAM.TXT":LIST:?
CHR$(4)"CLOSE":END
Hmmm.. I think that's right. Then run the program. You should end up with a
text file of the program in the file PROGRAM.TXT. You can just delete the
line 0 in your word processor.
>I believe there is also a way to turn the text file back into an AppleSoft
>Basic program. Any help would be appreciated.
After editing the program to your liking, just go back into BASIC and type:
EXEC PROGRAM.TXT
Now you have the new version of the program in memory. Now just SAVE it like
you normally would and you're all done! :)
-B.L.
P.S. Make sure that after you make the changes in your word processor that
you save it as a TEXT file and not an AWP file or something. :)
Internet: bill@pro-storm.cts.com | GEnie: bill.long
UUCP: crash!pro-storm!bill | Pro-Storm -+- Dallas, TX
Bitnet: bill%pro-storm.cts.com@nosc.mil | 12/2400 baud - 214/644-5113