Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

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

ASCII BASIC form program text
0
Posted

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

0

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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123