home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.apple2
- Path: sparky!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!ira.uka.de!news.belwue.de!news.uni-stuttgart.de!news
- From: WULF@bonnie.physik.uni-stuttgart.de (Wulf Hofbauer)
- Subject: Re: AppleSoft Basic Question
- In-Reply-To: mkheintz@vela.acs.oakland.edu's message of Sat, 7 Nov 1992 07:10:14 GMT
- Message-ID: <1992Nov7.120315.29794@news.uni-stuttgart.de>
- Sender: news@news.uni-stuttgart.de (USENET News System)
- Organization: Physics Dept, University of Stuttgart, FRG
- References: <1992Nov7.071014.13355@vela.acs.oakland.edu>
- Date: Sat, 7 Nov 1992 12:03:15 GMT
- X-News-Reader: VMS NEWS 1.24
- Lines: 36
-
- In <1992Nov7.071014.13355@vela.acs.oakland.edu> mkheintz@vela.acs.oakland.edu 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.
- >
- Append the following lines to your program:
-
- 63000 print chr$(4);"OPEN LISTFILE":print chr$(4);"WRITE LISTEFILE"
- 63010 list 1,62999
- 63020 print chr$(4);"CLOSE":end
-
- and then do a "RUN 63000".
- To convert it back to a BASIC file, use
-
- NEW
- EXEC LISTFILE
- SAVE BASFILE
-
- This doesn't work perfectly for all instances (eg. long BASIC lines or DATA
- lines) but is simple.
-
- - Wulf
-
-
- "Though this be madness, there is method in it." (Shakespeare)
- +-------------------------------------+-----------------------+
- ! WULF@BONNIE.PHYSIK.UNI-STUTTGART.DE ! Apple // Enthusiast !
- +-------------------------------------+-----------------------+
- ! Wulf Hofbauer * Heilbronner Str. 12 * W-7146 Tamm * Germany !
- ! Tel. 07141/602518 !
- +-------------------------------------------------------------+
-
-