Click here to Skip to main content
15,889,595 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Can I get the size of file and compare it with my size?

Example:
if (size of file > 3000000)
{
    // then do something
}


How can I get size of file?
Posted
Updated 13-May-11 13:12pm
v2

 
Share this answer
 
when i write this function , the compiler can't identifier on it ??
 
Share this answer
 
Comments
Stefan_Lang 16-May-11 5:39am    
1. Please don't add new solutions when you comment on another's solution. Use the blue 'Add Comment' link at the lower right corner of the solution instead. Similarly, if you want to respond to a comment, use the 'Reply' link at the upper right corner of the comment.

2. Have you #included the right header? You'll need Windows.h or WinBase.h (which is included by the latter).
Nelek 29-Oct-12 6:45am    
Lower left corner :P for comments

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