www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/05/17:33:56

From: "Ingo Ruhnke" <ruhnke AT owl-online DOT de>
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

A. Sinan Unur <sinan DOT unur AT cornell DOT edu> 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 <LF><CR>.
> >

> 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 <CR> or without them? Maybe this
could be the solution for my problem.

- Raw text -


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