From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Re: return file length... Organization: Pin Eight Software http://pineight.8m.com/ Message-ID: References: X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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" 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/