Thanks to all for their answers (I forgot about the obvious fstat() ...) .
Regarding what Ariel Biener wrote - I have to find the file size from within
the application code, on run time - so indeed it has to be a system call.
Ariel Biener wrote:
> On Tue, 12 Dec 2000, Ben-Nes Michael wrote:
>
> system call Michael, not command.
>
> --Ariel
> > Hi
> >
> > du -hs /root/stf.phtml
> > 4.0k /root/stf.phtml
> >
> > Edward Gold wrote:
> >
> > > Is there a system call that will give a file size (given it's name &
> > > path) ?
> > > I know that a possible answer can be the use of the system() call, and
> > > using ls -l| sort -bn +4from the shell it open- but I'm looking for
> > > something more simple.
> > >
> > > Thanks
> > >
> > >
> >
>
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]