Re: Checking the existence of a file

Date: Tue, 01 Mar 2016 16:52:22 +0100
Message-ID: <2753014.CjqAIKVNvh@rakete>
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.


Wozu Socken? Sie schaffen nur L÷cher. 
<Albert Einstein>

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

Archive generated by hypermail 2.2.0.