From: "Ingo Ruhnke" Newsgroups: comp.os.msdos.djgpp Subject: Re: How to get file size? Date: 30 Sep 1997 20:09:09 GMT Organization: Telemedia News Server Lines: 14 Message-ID: <01bccde3$d710bd40$0200a8c0@ingo> References: <01bccc5b$8138ba00$0200a8c0 AT ingo> <34302025 DOT 7E59 AT cornell DOT edu> NNTP-Posting-Host: gtso-m71-116.pool.mediaways.net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk A. Sinan Unur schrieb > Ingo Ruhnke wrote: > > This returns me the number of bytes of the file, but the number of > > chars is a little bit smaller, because of the . > > > i wouldn't think so... at least not without reading in the whole file > first. what is the problem with reserving space for a few extra bytes? Another question, what is the return value of fread(), I think it is the size of the part of the file, but with the or without them? Maybe this could be the solution for my problem.