delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/11/27/12:07:39

From: "beat studer" <beat_studer AT freesurf DOT ch>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: File handling
Date: Sat, 27 Nov 1999 17:33:44 +0100
Organization: sunrise communications ag
Lines: 16
Message-ID: <81p195$h1c$1@news1.sunrise.ch>
References: <81nu0o$v52$1 AT mango DOT singnet DOT com DOT sg>
NNTP-Posting-Host: pop-zh-12-1-dialup-113.freesurf.ch
X-Trace: news1.sunrise.ch 943720549 17452 194.230.198.113 (27 Nov 1999 16:35:49 GMT)
X-Complaints-To: usenet AT sunrise DOT ch
NNTP-Posting-Date: 27 Nov 1999 16:35:49 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I use the __file_exists(), filelength() and fileno() - functions ( run info
libc.a ).

Yong-Kiang Goh <ykgoh1 AT singnet DOT com DOT sg> wrote in message
news:81nu0o$v52$1 AT mango DOT singnet DOT com DOT sg...
> 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