V
vw_bora
Hi
I am using ifstream to read the contents of a file using getline(). I
would like to determine the line number of the file that the getline()
is reading. However, lookinfg at the istream API
http://www.cplusplus.com/reference/iostream/ifstream/
I can't see how it's possible to get the line number.
Anybody have a suggestion that I can use ?
Thank you.
Pete
I am using ifstream to read the contents of a file using getline(). I
would like to determine the line number of the file that the getline()
is reading. However, lookinfg at the istream API
http://www.cplusplus.com/reference/iostream/ifstream/
I can't see how it's possible to get the line number.
Anybody have a suggestion that I can use ?
Thank you.
Pete