[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Applesoft Basic Question



On Thu, 4 Feb 1999, Rich Hare wrote:

> slowing me down.  I'd like to have the program read the file from S6,D1
> and write it to S6,D2; but darn it I can't seem to parse the statements
> to make it work.  It seems that it should be something like:
> 
> 100 D$=CHR$(4)
> 110 PRINT D$;"BLOAD"A$;S6,D1
> 
> and later
> 120 PRINT D$;"OPEN"T$;S6,D2
> 130 PRINT D$;"WRITE"T$;S6,D2
> 
> where A$ and T$ are the input names of the respective files but dad gum
> it it just won't work'; the ONERR statement keeps bombing me out.
> Got to be a simple answer but I just can't see it.

sometimes one needs a second pair of eyes to see something that you're
missing.  (that's been MY experience, anyway...  <g>)

according to the FAQs on apple2.org, this is what i gathered:

120 PRINT D$;"OPEN"T$;",S6,D2"
130 PRINT D$;"WRITE"T$;",S6,D2"

that should do it...  :)

hope this helps...

+---------------------------+----------------------------------+
|  Will Smith               |  My employer is not responsible  |
|  Cabletron Systems, Inc.  |      for the content of my       |
|  SIL/Failure Analysis     |            messages.             |
+---------------------------+----------------------------------+
|   Madness takes its toll.  Please have exact change ready.   |
|                    * TAG! * v1.2 *                           |
+--------------------------------------------------------------+