What would be the best way to get the line number of the current line in a file that I have opened with a ifstream? So I am reading in the data and I need to store
ifstream
From an ifstream point of view there is no line number. If you read in the file line by line, then you just have to keep track of it yourself.