Hi, if i'm reading from a text file using <fstream>, is there a way to skip to a particular line in the text file (for reading, not writing)? What would be the easiest way to do this?
So far, this is what I have coded to open/close the file.
Code:void readTxtFile()
{
string temp;
ifstream inData;
inData.open("indata.txt");
//not sure on the usage of the getline function
inData.getline(temp, '\n');
inData.close;
}