Re: Checking the existence of a file

From: A. Fachat <>
Date: Tue, 01 Mar 2016 20:09:00 +0100
Message-ID: <>
Am 1. März 2016 16:52:34 schrieb

> On Tuesday 01 March 2016, 13:26:17 Baltissen, GJPAA (Ruud)
> <> wrote:
>> Hallo allemaal,
>> Although I have written a lot in ML, I cannot remember to have written a PRG
>> in ML for any Commodore ever. My problem: how can I check the existence of
>> a file? As shown in a Data-Becker book I did set various variables like
>> filename and the length of it using a standard routine, set the logical
>> file number, device number and secondary address using a standard routine
>> and called the OPEN routine. This Data-Becker book said that if things go
>> wrong, the Carry is set and A contains the error code, including one for
>> 'file is missing'. Seemed simple enough.
> IIRC you have to read from the file to get the error, just OPEN wont do it.

Better yet, read the Commodore disk drive's error channel after the open call.
Or read it after getting the error when reading.

> --
> Wozu Socken? Sie schaffen nur Löcher.
> <Albert Einstein>
>        Message was sent through the cbm-hackers mailing list

       Message was sent through the cbm-hackers mailing list
Received on 2016-03-01 20:00:11

Archive generated by hypermail 2.2.0.