[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: BASIC to TeXT
- Subject: Re: BASIC to TeXT
- From: nathan@parka.winternet.com (Nathan Mates)
- Date: 1996/06/24
- Newsgroups: comp.sys.apple2
- Organization: Winternet Corporation, Mpls, MN
- References: <4qn3qq$njf@texas.nwlink.com>
In article <4qn3qq$njf@texas.nwlink.com>,
Damon Isaacson <cat@nwlink.com> wrote:
>I wondering if there is a program that will take a BASIC file and print
>out a listing into a text file? I think I've seen it on here a few months
>ago. Thanx!
Try this. Replace 'LISTING.TXT' with whatever file name you want
it to go to.
1 POKE 33,33: PRINT CHR$(4)"OPEN LISTING.TXT":PRINT CHR$(4)"WRITE LISTING.TXT":
LIST 2-65000:PRINT CHR$(4)"CLOSE":TEXT:END
[That's all one line of code; only hit return after the 'END']
Once typed in, just 'RUN' it and the listing will be written out.
That program works only for Applesoft BASIC programs; if you want to
write out Integer Basic programs, remove the 'CHR$(4)' from each of
the 3 PRINT statements, and replace it with a control-D after the
opening " of each print statement.
Nathan Mates
--
<*> Nathan Mates http://www.ugcs.caltech.edu/~nathan/ <*>
# And he said to them, "To you has been given the secret of the
# Kingdom of God, but for those outside, everything comes in
# parables" Mark 4:11, NRSV