how to check if a file is empty

0 todd endsley · March 30, 2015
using sizeof. I have tried but cannot find a way to make this work.

Post a Reply

Replies

Oldest  Newest  Rating
0 Dol Lod · March 30, 2015
You could try using fstat to get the file size if that helps. Look up fstat and for c/C++ it will work to calculate the file size. 
  • 1

C++

107,222 followers
About

Used in many types of software including music players, video games, and many large scale applications.

Links
Moderators
Bucky Roberts Administrator