Signs in a file without using binary
What if you feel like knowing how many charecters there are in some file what do you then do. I know that this doens't work since these functions work with binary and if my file isn't a binary file that's crap.
File.seekg(0, ios::end);
Length = File.tellg();
File.seekg(0, ios::beg);
So I've aproached the problem this way because I know for a fact that get isn't working with binary.
Code:
while (File.good())
{
File.get();
Length++;
}
But is this the most effecient?