From owner-freebsd-questions Tue Jun 9 08:29:43 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA18872 for freebsd-questions-outgoing; Tue, 9 Jun 1998 08:29:43 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from amber.ecom.net (ns1.ecom.net [207.155.73.10] (may be forged)) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA18860 for ; Tue, 9 Jun 1998 08:29:38 -0700 (PDT) (envelope-from randyk@ccsales.com) Received: from ntrkcasa (b196.ecom.net [207.13.225.196]) by amber.ecom.net (8.8.8/8.8.7) with SMTP id IAA27032 for ; Tue, 9 Jun 1998 08:29:24 -0700 (PDT) (envelope-from randyk@ccsales.com) Message-Id: <3.0.5.32.19980609082620.00bad340@ccsales.com> X-Sender: randyk@ccsales.com X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Tue, 09 Jun 1998 08:26:20 -0700 To: freebsd-questions@FreeBSD.ORG From: "Randy A. Katz" Subject: File Exists... In-Reply-To: <199806091515.AA25989@skye.icr.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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