Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.acorn.programmer > #5554 > unrolled thread

Testing for the presence of a file

Started byGraham Pickles <graham@durain.uk>
First post2018-10-08 16:02 +0100
Last post2018-10-08 16:02 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.sys.acorn.programmer


Contents

  Testing for the presence of a file Graham Pickles <graham@durain.uk> - 2018-10-08 16:02 +0100

#5554 — Testing for the presence of a file

FromGraham Pickles <graham@durain.uk>
Date2018-10-08 16:02 +0100
SubjectTesting for the presence of a file
Message-ID<c5c6d14357.graham@graham.durain.uk>
> I wrote

> I'm having a senior moment!  What is the simplest method of determining
> in a Basic (RiscOs 4.02) program whether a named file exists in a
> particular directory?
>
> e.g. A file called test might/might not exist in my <Data$Dir>
> directory. If it exists then I wish to remove it but don't want to
> create an error if it doesn't exist!
>
> Regards to all,

Many thanks to everyone for all the suggestions and the speedy
responses. It should be easy for me to do now !

Regards,

-- 
Graham Pickles
Pain is inevitable. Suffering is optional. (M. Kathleen Casey)

[toc] | [standalone]


Back to top | Article view | comp.sys.acorn.programmer


csiph-web