Description
This article is from the Apple II
Programming FAQ, by Jeff Hurlburt with numerous contributions
by others.
006- How do I save a BASIC program in ASCII text form?
The following line added to the front of your Applesoft BASIC program
will save it in a Text file named "LISTFILE". It works in DOS 3.3 or
ProDOS.
1 HOME:PRINT CHR$(4)"OPEN LISTFILE": PRINT CHR$(4)"WRITE LISTFILE":
POKE 33,33: LIST 2,: PRINT CHR$(4)"CLOSE": END
If you have a line 1 which you'd like to leave alone, you can enter
the above at Line 0 and change LIST 2, to LIST 1,.
POKE 33,33 causes the text display routine to not insert any
unneccessary spacing into your BASIC program listing, which cleans up
the text file output nicely. --David Cross
 
Continue to:
Share and Enjoy
Bookmark this story so others can enjoy it:
Tags
pc, hardware, Apple II, Apple ][ or Apple //, apple, programming