any function will help to check a file size??
any function will help to check a file size??
Or use seekp()/tellp().Code:f.seekg(0,ios::end); long size = (long)f.tellg();
gg
... and read this too
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]
thank you so much....i will try that out
"ftell" is the equivalent of tell[p,g](). Be sure to open the file in binary mode for determining the size....ftell is not guaranteed to return a byte count except for binary files...
(good call Hammer)
gg