SJDMK@UNO.BITNET (11/19/86)
I got alot of good response for my previous notice about the ram drive
but now I have another question.
First of all I'll do a short summary of the answers to question #1.
I'll post a more complete summary in a couple of days.
ProDOS automatically creates a ram disk. Whenever you want to put something
on it, precede the file name with /ram. For example: to store a
program called ANIMALS on the ram disk, assuming you have it in
memory, type SAVE /RAM/ANIMALS. To find out what's on your ram disk,
type CAT /RAM or CATALOG /RAM. The ram disk is 128 blocks long (I
would imagine 64k).
Now for my next question: Is there any command similar to this:
COPY ANIMALS /RAM/ANIMALS
The reason for this is, I can put a BASIC program onto the ram disk by
loading it from my disk and SAVEing it to the ram disk as described
above. I want to transfer a text file from one to the other.
I could write a program which reads the text file into an array and
then writes it to the ram disk file but that seems very inefficient.
Any ideas?
While I'm on a roll, I'll throw out another question:
In a BASIC program, can you have two files open at once? One for
reading from and the other for writing to? I tried it but as soon
as the program came down to my input statement (which it was supposed
to get from the input file), I was prompted at the screen with a "?".
Thanks for all your help. It's nice having a bunch of experts to ask
questions to when you get stuck...
Steve
Steven J. Dawson
BITnet: SJDMK@UNO.BITNET