FStream - questions about getline

I know fstream's functions (member and inherited), but I was wondering if there is a variant of getline that will target a specified line number in the opened file.

Secondly, if all of the read data is integers or floating-point decimals, is it possible to read them into an int or float array instead of the usual character array?

Thanks,
Mobius
No, you need to read every line until the line you need.

Probably not, but I may be wrong.
Edit: Change the above to "possibly".
Last edited on
Topic archived. No new replies allowed.