Just wondering if i can re-read something i just read in?
if(in_stream.is_open())
while(i<50 && in_stream.getline(temp, 50) && temp>0)
{
if(isdigit(temp))
PX1>>temp;
else length=strlen(temp);
if(length>1)
{
string1[]=temp;
in_stream.getline(temp, 50)
if(isalpha(temp))
string2[]=temp;
else
}
else PX2>>temp; i++;
}
in_stream.close();
Hope it doesn't come across as vague but if towards the end of a while loop i read in the line containing Novice just to check if it matches something the operation could continue on with (however it doesn't) is it possible to move the line 'indicator' back so when the program falls back to the beginning of the loop it will read in that same line (as i will need that line of data)?
data i.e:
- 2
- Lubriderm
- Novice
- 3
- X
- 6
- Willis