Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 09 Jun 1998 08:26:20 -0700
From:      "Randy A. Katz" <randyk@ccsales.com>
To:        freebsd-questions@FreeBSD.ORG
Subject:   File Exists...
Message-ID:  <3.0.5.32.19980609082620.00bad340@ccsales.com>
In-Reply-To: <199806091515.AA25989@skye.icr.ac.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello,

This is a kind of infantile question:

How does one code whether file exists in C?

In Perl:

if (-e "/usr/myfile.hhh") {
  &doit;
}

How does one code that in C? Are there extensive flags like perl has?

Thanx,
Randy Katz

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.5.32.19980609082620.00bad340>