[Coco] Copying over an IO ERROR

Allen Huffman alsplace at pobox.com
Tue Feb 3 17:14:35 EST 2015


> On Feb 3, 2015, at 3:32 PM, Bill <cwgordon at carolina.rr.com> wrote:
> 
> Now, how do I know if this is an error in READING the source, or an error in WRITING to the destination?

Ah. Two ways:

1. There is a variable that shows the line that had the error, and you could "just know" what the line number is.

But better:

2. Expanded to work like this:

XX ON ERR GOTO YYY
XX DSKI$ ....
XX ON ERR GOTO ZZZ
XX DSKO$ ...

END
YYY PRINT "ERROR READING" ...
YYY GOTO ...
ZZZ PRINT "ERROR WRITING" ...
ZZZ GOTO ...



More information about the Coco mailing list