From mboxrd@z Thu Jan 1 00:00:00 1970 From: "James Stevenson" Subject: Re: Misc C question Date: Thu, 20 Jun 2002 19:09:29 +0100 Sender: linux-c-programming-owner@vger.kernel.org Message-ID: <006501c21885$9f3e4350$0501a8c0@Stev.org> References: <20020619214332.A299@nietzsche> Return-path: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-c-programming@vger.kernel.org, xmp Hi hum would that not be stat and lstat ----- Original Message ----- From: "xmp" To: Sent: Thursday, June 20, 2002 3:46 AM Subject: Misc C question > hi, What is the correct unix-style way to check if a file exists ? create it ? and delete it ?. > Maybe trying to fopen() it and if call != NULL it exist, else it doesnt?. > I want to know the most standard and used in system such as FreeBSD and solaris, linux. > > bye > > > - > To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html