home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.apple2
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!spool.mu.edu!agate!dog.ee.lbl.gov!news!nosc!crash!<pro-nsdapple!pro-storm!bill>
- id <m0mnwtI-0000blC@crash.cts.com>; Sat, 7 Nov 92 12: 36 PST
- id <k743748@pro-nsdapple.cts.com>; Sat, 7 Nov 92 12: 09 PDT
- id <k747452@pro-storm.cts.com>; Sat, 7 Nov 92 13: 10 CST
- From: bill@pro-storm.cts.com (Bill Long)
- Subject: Re: AppleSoft Basic Question
- Organization: ProLine [pro-storm] -- Dallas, TX -- 214/644-5113
- Date: Sat, 7 Nov 92 12:58:06 CST
- Message-ID: <k747452@pro-storm.cts.com>
- In-Reply-To: mkheintz@vela.acs.oakland.edu (Michael Heintz)
- References: <1992Nov7.071014.13355@vela.acs.oakland.edu>
- Lines: 35
-
- In <1992Nov7.071014.13355@vela.acs.oakland.edu>
- mkheintz@vela.acs.oakland.edu (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.
-
- Go into BASIC and LOAD the program you want to convert. Then add the
- following line:
-
- 0 ? CHR$(4)"OPEN PROGRAM.TXT":? CHR$(4)"WRITE PROGRAM.TXT":LIST:?
- CHR$(4)"CLOSE":END
-
- Hmmm.. I think that's right. Then run the program. You should end up with a
- text file of the program in the file PROGRAM.TXT. You can just delete the
- line 0 in your word processor.
-
- >I believe there is also a way to turn the text file back into an AppleSoft
- >Basic program. Any help would be appreciated.
-
- After editing the program to your liking, just go back into BASIC and type:
-
- EXEC PROGRAM.TXT
-
- Now you have the new version of the program in memory. Now just SAVE it like
- you normally would and you're all done! :)
-
- -B.L.
-
- P.S. Make sure that after you make the changes in your word processor that
- you save it as a TEXT file and not an AWP file or something. :)
-
- Internet: bill@pro-storm.cts.com | GEnie: bill.long
- UUCP: crash!pro-storm!bill | Pro-Storm -+- Dallas, TX
- Bitnet: bill%pro-storm.cts.com@nosc.mil | 12/2400 baud - 214/644-5113
-