www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/08/09/14:30:21

From: Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: return file length...
Organization: Pin Eight Software http://pineight.8m.com/
Message-ID: <nc83psgumrm3d7pvs3p8ll5otmjosu17fp@4ax.com>
References: <YKgk5.4683$aK5 DOT 77966 AT news1 DOT online DOT no>
X-Newsreader: Forte Agent 1.7/32.534
MIME-Version: 1.0
Lines: 16
X-Trace: /wzbxdOD5I4rCyCKxtHdfSKVEAx9d7KZteboCHs8iwnee+vcZceJijbCOujMSRew9WGMhkWaC5CI!SA9zSzCm72VZCsiT7dSIaoPtTH5RdmawFNSxzhGOdoM2A1l17v/lf2kGGsNGYH3DDLKr+RLWUEL9!rXYd
X-Complaints-To: abuse AT gte DOT net
X-Abuse-Info: Please be sure to forward a copy of ALL headers
X-Abuse-Info: Otherwise we will be unable to process your complaint properly
NNTP-Posting-Date: Wed, 09 Aug 2000 18:22:23 GMT
Distribution: world
Date: Wed, 09 Aug 2000 18:22:23 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Wed, 9 Aug 2000 19:50:41 +0200, "Vermin" <ratspl AT hotmail DOT com>
wrote:

>How can you get the length of a file opened using "fopen" ???

fseek() to end
ftell() gives file length
fseek() back to start

-- 
Damian Yerrick
"I refuse to listen to those who refuse to listen to reason."
See the whole sig: http://www.rose-hulman.edu/~yerricde/sig.html

This is McAfee VirusScan. Add these two lines to your signature to
prevent the spread of signature viruses.  http://www.mcafee.com/

- Raw text -


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