lotus

previous page: 04.016 How can I see and edit what's in a Text file?
  
page up: Apple II Csa2 FAQs
  
next page: 04.018 Where and how do I get GS System 6.0.1?

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




Description

This article is from the Apple II Csa2 FAQ, by Jeff Hurlburt with numerous contributions by others.

04.017 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.

By:  Rubywand
    

 

Continue to:













TOP
previous page: 04.016 How can I see and edit what's in a Text file?
  
page up: Apple II Csa2 FAQs
  
next page: 04.018 Where and how do I get GS System 6.0.1?