Does anybody know a way to find out the size of a file? I read in a file using ifstream and I was hoping to put a progress bar in my program though the file size is changing therefore I cannot have a constant stepping in the progress bar.
From the back of my mind, you can use seek to go from the beginning of the file to the ending of the file and counting the number of bytes. Unfortunately, I can't find my notes to give you an example. I'll keep looking if you want.
James P. Cottingham
When a man sits with a pretty girl for an hour, it seems like a minute. But let him sit on a hot stove for a minute and it's longer than any hour. That's relativity. [tab][tab]Albert Einstein explaining his Theory of Relativity to a group of journalists.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.