Hello

I'd like to determine text file length and read it, if the length doesnt exceed the limit.

What is the simplest way to do that in C++?

I have found some examples with eof approach but as far as I remember I've been told this isnt a good way to read files.

Thanks a lot for help!