lotus

previous page: 005- How can I see and edit what's in a Text file?
  
page up: Apple II Programming FAQ
  
next page: 007- Where and how can I get GS System 6.0.1?

006- How do I save a BASIC program in ASCII text form?




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:













TOP
previous page: 005- How can I see and edit what's in a Text file?
  
page up: Apple II Programming FAQ
  
next page: 007- Where and how can I get GS System 6.0.1?