[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Apple BASIC question
- Subject: Re: Apple BASIC question
- From: clueung@pro-amber.cts.com (Chantha Lueung)
- Date: Thu, 6 May 93 20:00:24 PDT
- In-reply-to: yahnke@macc.wisc.edu (Ross Yahnke)
- Newsgroups: comp.sys.apple2
- Organization: ProLine [pro-amber] -- Spring Valley, Ca
yahnke@macc.wisc.edu (Ross Yahnke) writes:
>What command can you enter in Apple Basic that will cause the basic
>program listing to be saved to disk as a text file?
>
>Thanks! - Ross
> Madison Academic Computing Center
> University of Wisconsin
> 608.262.8626
this is what you can do, just execute this program:
but first use an editor and edit out all the above where it says "Cut here"
including the "Cut here" then just save as a text file. Then just type
exec "the text file" or type -"the text file" if you're in prodos and minus
the quotes
--------------- Cut here -----------------
home:?"Welcome to the AppleSoft to Text converter":?"By Chantha Lueung
5/6/93"
input "What name do you wish to call the program? ";n$
?CHR$(4);"OPEN";N$:?CHR$(4);"WRITE";N$
LIST
?CHR$(4);"CLOSE";N$
-------------- CUT here and everything else down -------
Oh, I almost forgot, if youu're using dos 3.x change all the commands to
upper case lettrs because dos 3.x does not accept lowercase letters.
I just realized that, so some of it is lower case, but if you're using
prodos you needn't worry
more questions? send it to Clueung@pro-amber or pro-nsdapple
ProLine: clueung@pro-amber
Internet: clueung@pro-amber.cts.com
UUCP: crash!pro-amber!clueung