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


Groups > comp.sys.acorn.programmer > #5557

Re: Testing for the presence of a file

From "John Williams (News)" <UCEbin@tiscali.co.uk>
Subject Re: Testing for the presence of a file
Newsgroups comp.sys.acorn.programmer
Date 2018-10-09 23:59 +0100
Message-ID <5744813e2fUCEbin@tiscali.co.uk> (permalink)
References <70cfbe4357.graham@graham.durain.uk> <5743ca65b9UCEbin@tiscali.co.uk> <9701324457.graham@graham.durain.uk>
Organization League of Underpaid, Overworked, Undervalued, and Overwhelmed

Show all headers | View raw


In article <9701324457.graham@graham.durain.uk>,
   Graham Pickles <graham@durain.uk> wrote:
> >  :
> >  DEF FN_objectpresent(fullpath$)
> >  SYS"OS_File",23,fullpath$ TO present%,,,,,,objftype%
> >  =present%
> >  REM case present% of 0=absent 1=file 2=directory 3=image file
> >  :
> >
> >I use it quite a lot!
> >
> >John
> >
> Many thanks. Of course. You reminded me. This is the method I have
> adopted and it's ideal.

Thanks, Graham - it's not often I'm the chosen one!

But, to be fair, other contributions were equally good!

It's just that this one lends itself to being in a library of goodies!

Best wishes, 
 
John

-- 
John Williams, now back in the UK - no attachments to these addresses!
Non-RISC OS posters change user to johnrwilliams or put 'risc' in subject!
Who is John Williams? http://petit.four.free.fr/picindex/author/

Back to comp.sys.acorn.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Testing for the presence of a file Graham Pickles <graham@durain.uk> - 2018-10-08 12:35 +0100
  Re: Testing for the presence of a file Alan Adams <alan@adamshome.org.uk> - 2018-10-08 12:50 +0100
    Re: Testing for the presence of a file Bob Latham <bob@sick-of-spam.invalid> - 2018-10-08 13:17 +0100
      Re: Testing for the presence of a file Alan Adams <alan@adamshome.org.uk> - 2018-10-08 14:24 +0100
      Re: Testing for the presence of a file Bob Latham <bob@sick-of-spam.invalid> - 2018-10-08 14:22 +0100
  Re: Testing for the presence of a file "John Williams (News)" <UCEbin@tiscali.co.uk> - 2018-10-08 14:42 +0100
    Re: Testing for the presence of a file Graham Pickles <graham@durain.uk> - 2018-10-09 09:33 +0100
      Re: Testing for the presence of a file "John Williams (News)" <UCEbin@tiscali.co.uk> - 2018-10-09 23:59 +0100
  Re: Testing for the presence of a file "John Williams (News)" <UCEbin@tiscali.co.uk> - 2018-10-08 14:50 +0100
    Re: Testing for the presence of a file "John Williams (News)" <UCEbin@tiscali.co.uk> - 2018-10-08 14:53 +0100
    Re: Testing for the presence of a file jgh@mdfs.net - 2018-10-21 19:57 -0700
      Re: Testing for the presence of a file jgh@mdfs.net - 2018-10-21 20:00 -0700
  Re: Testing for the presence of a file jgh@mdfs.net - 2018-10-21 19:55 -0700
    Re: Testing for the presence of a file Matthew Phillips <spam2011m@yahoo.co.uk> - 2018-10-23 07:43 +0100

csiph-web