home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cis.ohio-state.edu!ucbvax!gnh-cathouse.cts.com!kimba
- From: kimba@gnh-cathouse.cts.com (Kim Brennan)
- Newsgroups: comp.sys.apple2
- Subject: Re: BASIC listing => TEXT file ??
- Message-ID: <m0mJfVC-00011vC@crash.cts.com>
- Date: 16 Aug 92 08:16:38 GMT
- Sender: daemon@ucbvax.BERKELEY.EDU
- Distribution: world
- Organization: The Internet
- Lines: 27
- X-Unparsable-Date: Sat Aug 15 92 at 17:46:19 (EST)
-
- > From: JOEL@jach.hawaii.edu (Joel Aycock)
- > Does anyone know how I can get an ASCII text file on disk, from a BASIC
- > program listing? I want to be able to transfer readable listings to
- > another (non-Apple) machine....
-
- you insert something like the following in the code (forgive any precise
- errors, as it has been quite a while since I did Applesoft programming):
-
- In the Basic Programming with ProDOS manual there is a small program that
- demonstrates how to do this...It is called LISTSELF (Page 93).
-
- In the code of your program have something like this...
-
- 10 D$=CHR$(4)
- 20 PRINT D$"OPEN LISTFILE"
- 30 PRINT D$"WRITE LISTFILE"
- 40 LIST
- 50 PRINT D$"CLOSE LISTFILE"
- 60 STOP
-
- Then all you have to do is run 10, and your file will be listed in a text
- file.
-
- -=> Message from Kim Brennan <=-
- (kimba@gnh-cathouse.cts.com)
- {Cathouse BBS (301) 840-8567 3/12/24/9600 V.32 24 hours}
- * "This is Rumor Control, and here are the facts." (Alien 3) *
-