whats the difference when we get file size through
ftell(Filepointer) and getting it from stat()?
Which one is efficient?
whats the difference when we get file size through
ftell(Filepointer) and getting it from stat()?
Which one is efficient?
“radha krishnan” <radha.nk@geind.ge.com> wrote in message
news:d1udr0$63a$1@inn.qnx.com…
whats the difference when we get file size through
ftell(Filepointer) and getting it from stat()?
stat() is expensive because it does an open and a close.
If you already have a file pointer ftell is ok (but you have to to an seek
at the end) but fstat is better
Which one is efficient?