HP3000-L Archives

January 1998, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Jeff Vance <[log in to unmask]>
Reply To:
Jeff Vance <[log in to unmask]>
Date:
Sun, 25 Jan 1998 21:58:30 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (26 lines)
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

--

ATOM RSS1 RSS2