how to tell that a file exists and is not 0-len?

Gary Kline kline at
Wed Dec 28 23:50:14 UTC 2011


access(filenamewithpath, F_OK) returned true  as Zero if i have
access to it.  what do i use in C to tell me that a file is not  
empty?  fstat?  or is there something more common?



 Gary Kline  kline at  Public Service Unix
           Journey Toward the Dawn, E-Book:
          The 8.57a release of Jottings:
             Twenty-five years of service to the Unix community.

More information about the freebsd-questions mailing list