Date: Sun, 28 Nov 1999 11:48:49 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Yong-Kiang Goh cc: djgpp AT delorie DOT com Subject: Re: File handling In-Reply-To: <81nu0o$v52$1@mango.singnet.com.sg> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Fri, 26 Nov 1999, Yong-Kiang Goh wrote: > How do I check whether a file exists given its filename You can use library functions `access', `stat', and `__file_exists'. The latter is the fastest, but it is non-portable. If you want portability, use `access', it's much faster than `stat'.