LizardKingSchwing
Programmer
This should be easy but I'm getting spurious results while trying / testing it out ....
Basically I open a CStdioFile and use ReadString until end of file. Upon reading in a certain keyword say Key1, I then read the next 3 lines in and check for other different keywords, say Key2,Key3,Key4.
However if a Key1 value is in any of these lines it will be missed upon the next read cos the file pointer has now passed it by.
To fix this I put in a check for Key1 in the second stage and if found I used CFile::Seek to move the pointer back
What I need to know is how to determine how to move the file back 1 or 2 lines
anyone with any info. help , guides etc. please
Cheers
LK--<
Basically I open a CStdioFile and use ReadString until end of file. Upon reading in a certain keyword say Key1, I then read the next 3 lines in and check for other different keywords, say Key2,Key3,Key4.
However if a Key1 value is in any of these lines it will be missed upon the next read cos the file pointer has now passed it by.
To fix this I put in a check for Key1 in the second stage and if found I used CFile::Seek to move the pointer back
What I need to know is how to determine how to move the file back 1 or 2 lines
anyone with any info. help , guides etc. please
Cheers
LK--<