Click here to Skip to main content
13,501,210 members
Rate this:
Please Sign up or sign in to vote.
See more:
Can I get the size of file and compare it with my size?

if (size of file > 3000000)
    // then do something

How can I get size of file?
Posted 13-May-11 13:00pm
Updated 13-May-11 13:12pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Rate this: bad
Please Sign up or sign in to vote.

Solution 2

when i write this function , the compiler can't identifier on it ??
Stefan63 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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02 | 2.8.180417.1 | Last Updated 29 Oct 2012
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100