From owner-freebsd-questions Tue Jun 9 14:31:23 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA09020 for freebsd-questions-outgoing; Tue, 9 Jun 1998 14:31:23 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from mail.iconz.co.nz (mail.iconz.co.nz [202.14.100.36]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA09013 for ; Tue, 9 Jun 1998 14:31:15 -0700 (PDT) (envelope-from jonc@pinnacle.co.nz) Received: from news.iconz.co.nz (status.gen.nz [202.14.100.1]) by mail.iconz.co.nz (8.8.7/8.8.7) with ESMTP id JAA089040897427866; Wed, 10 Jun 1998 09:31:06 +1200 (NZST) Received: (from uucp@localhost) by news.iconz.co.nz (8.8.5/8.8.5) with UUCP id JAA16979; Wed, 10 Jun 1998 09:31:06 +1200 Received: from tui.pinnacle.co.nz (tui.pinnacle.co.nz [202.37.163.3]) by kakapo.pinnacle.co.nz (8.8.8/8.8.8) with ESMTP id JAA16274; Wed, 10 Jun 1998 09:04:04 +1200 (NZST) Received: from localhost (jonc@localhost) by tui.pinnacle.co.nz (8.8.8/8.8.8) with SMTP id JAA08049; Wed, 10 Jun 1998 09:04:03 +1200 (NZST) X-Authentication-Warning: tui.pinnacle.co.nz: jonc owned process doing -bs Date: Wed, 10 Jun 1998 09:04:03 +1200 (NZST) From: Jonathan Chen To: "Randy A. Katz" cc: freebsd-questions@FreeBSD.ORG Subject: Re: File Exists... In-Reply-To: <3.0.5.32.19980609082620.00bad340@ccsales.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 9 Jun 1998, Randy A. Katz wrote: > Hello, > > This is a kind of infantile question: > > How does one code whether file exists in C? > Check out stat(2) with `man stat'; or even access(2). -- Jonathan Chen ------------------------------------------------------------------------ "We laugh in the face of danger, we drop icecubes down the vest of fear" - Edmond Blackadder III To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message