Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to use the stat function to retrive the file size in windows 7? I am using windows 7 64 bit. Everytime the stat returns -1. How to retrieve the correct filesize?
Posted
Comments
Code-o-mat 6-Aug-12 3:39am    
Are you talking about this: http://msdn.microsoft.com/en-us/library/14h5k7ff%28v=vs.100%29.aspx ? What does errno give you after the call (try to look up the error instead of giving us a number, please)?

1 solution

Check the documentation[^]; a return value of -1 means that the file could not be found, or some general error occurred.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900