[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 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.
>
> I believe there is also a way to turn the text file back into an AppleSoft
> Basic program. Any help would be appreciated.
>
Append the following lines to your program:
63000 print chr$(4);"OPEN LISTFILE":print chr$(4);"WRITE LISTEFILE"
63010 list 1,62999
63020 print chr$(4);"CLOSE":end
and then do a "RUN 63000".
To convert it back to a BASIC file, use
NEW
EXEC LISTFILE
SAVE BASFILE
This doesn't work perfectly for all instances (eg. long BASIC lines or DATA
lines) but is simple.
- Wulf
"Though this be madness, there is method in it." (Shakespeare)
+-------------------------------------+-----------------------+
! WULF@BONNIE.PHYSIK.UNI-STUTTGART.DE ! Apple // Enthusiast !
+-------------------------------------+-----------------------+
! Wulf Hofbauer * Heilbronner Str. 12 * W-7146 Tamm * Germany !
! Tel. 07141/602518 !
+-------------------------------------------------------------+