On Jan 25, 4:22am, Denis St-Amand wrote:
> Subject: Re: Questions about UDC
> By using a command like "IF FINFO('filename',0) THEN...
> Manuel <[log in to unmask]> a icrit dans l'article
> <[log in to unmask]>...
> > Hi everybody !
> >
> > I'm wondering if it's possible to check within an UDC tath the specific
> > filename exists ?
> >
> > I meant something like in UNIX if [ -f /etc/hosts ];
FINFO is probably the best way. I prefer to use the mnemonics rather that
the item numbers. Thus my choice would be:
if finfo('filename','exists) then
# file exists...
else
# file does not exist
endif
HELP FINFO (on 5.5) reveals all of the supported items and mnemonics.
Jeff Vance, CSY
--