Subj : Re: newbie question [C language] To : comp.programming From : Randy Howard Date : Thu Jun 30 2005 02:06 pm On Thu, 30 Jun 2005 04:27:31 -0500, Willem wrote (in article ): > 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) .