Re: newbie question [C language]
- From: Randy Howard <randyhoward@xxxxxxxxxxxxxxxxx>
- Date: Thu, 30 Jun 2005 13:06:12 GMT
On Thu, 30 Jun 2005 04:27:31 -0500, Willem wrote
(in article <slrndc7eo3.3nd.willem@xxxxxxxxxxxxx>):
> Fred_NacH wrote:
>> I was wondering, how to retrieve the size/length of a file by only using
>> the ansi functions...
>
> Read from the file until you reach the end and count how much you've read.
>
> Functions (stat) that retrieve file length etc. are not in the ANSI C spec
> AKAIK, although I admit I'm not sure.
Perhaps the C FAQ will help:
http://www.eskimo.com/~scs/C-faq/q19.12.html
--
Randy Howard (2reply remove FOOBAR)
.
- References:
- newbie question [C language]
- From: Fred_NacH
- Re: newbie question [C language]
- From: Willem
- newbie question [C language]
- Prev by Date: Re: 16bit dll from 32bit app
- Next by Date: Re: newbie question [C language]
- Previous by thread: Re: newbie question [C language]
- Next by thread: Re: newbie question [C language]
- Index(es):
Relevant Pages
|