[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AppleSoft Basic Question
Michael Heintz 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.
I'm sure that someone already answered your question, but what the heck, I'll
put in my $0.02 anyway.
You can just add a line to the program, like so:
]1 PRINT CHR$(4) "OPEN FILENAME" : PRINT CHR$(4) "WRITE FILENAME": LIST :
PRINT CHR$(4) "CLOSE FILENAME"
and you have yourself a TEXT file : FILENAME. Then, when you want to make
it a BASIC program again, just do this:
]exec filename
and as long as there are no unncessary line feeds and carriage returns, it
should just put everything where it belongs and you'll have a basic program
in memory.
> Many thanks,
> ...Mike
> --
> Michael Heintz, Oakland University - Rochester, Michigan
> InterNet: mkheintz@vela.acs.oakland.edu
> BITNET: mkheintz@oakland.BITNET
--
< > ---------------------------------------------------------- < >
< > Amrit Chauhan | achauhan@math.macalstr.edu < >
< > PL: amritc@pro-hlg < >
< > ---------------------------------------------------------- < >