Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Dec 2011 15:50:13 -0800
From:      Gary Kline <kline@thought.org>
To:        FreeBSD Mailing List <freebsd-questions@FreeBSD.ORG>
Subject:   how to tell that a file exists and is not 0-len?
Message-ID:  <20111228235010.GA28763@thought.org>

next in thread | raw e-mail | index | archive | help


guys,

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?

thanks,

gary


-- 
 Gary Kline  kline@thought.org  http://www.thought.org  Public Service Unix
           Journey Toward the Dawn, E-Book: http://www.thought.org
          The 8.57a release of Jottings: http://jottings.thought.org
             Twenty-five years of service to the Unix community.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20111228235010.GA28763>