home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.apple2
- Path: sparky!uunet!caen!destroyer!news.iastate.edu!news
- From: achauhan@warsaw.math.macalstr.edu (Amrit Chauhan)
- Subject: Re: AppleSoft Basic Question
- Message-ID: <BxID2y.AG7@news.iastate.edu>
- Sender: news@news.iastate.edu (USENET News System)
- Organization: Iowa State University, Ames IA
- References: <1992Nov7.071014.13355@vela.acs.oakland.edu>
- Date: Tue, 10 Nov 1992 16:13:45 GMT
- Lines: 38
-
- 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 < >
- < > ---------------------------------------------------------- < >
-