delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/11/27/02:05:57

From: "Yong-Kiang Goh" <ykgoh1 AT singnet DOT com DOT sg>
Newsgroups: comp.os.msdos.djgpp
Subject: File handling
Date: Fri, 26 Nov 1999 14:34:23 +0800
Organization: Singapore Telecommunications Ltd
Lines: 9
Message-ID: <81nu0o$v52$1@mango.singnet.com.sg>
NNTP-Posting-Host: 58echo574.singnet.com.sg
X-Newsreader: Microsoft Outlook Express 4.72.3110.5
X-Mimeole: Produced By Microsoft MimeOLE V4.72.3110.3
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

How do I check whether a file exists given its filename without using
fopen() to try to open the file and checking the return code from the
function? Any better way to do it?

Also, how do I get the size of the file in bytes?




- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019