OK last query of theday.
Is there a way to obtain the number of lines in a file?
I'm using
read my file.Code:fstream finput; finput.open(sourceFileName, ios::in);
I could just loop through to the end and increase a counter but this seems very inefficient, so thought there must be a better way
Cheers