Hi There,
I need to re-write any mention of .tellg() in my code as the function is not supported on the desired hardware. I have the following lines of code:
getline(file,line);
{
std::istringstream stream(line);
stream >> first >> second >> third >> forth;
UINT32 file_pos = stream.tellg();
file_pos++;
fifth = line.substr( file_pos , line.length() - stream.tellg() );
}
As far as I can work out, tellg is used to find out where in the line the stream is, so fifth is anything between forth and the end of line.
file_pos++; is to allow for a space.
My questions are:
Is there any easy alternative of finding the position in the stream without using tellg();?
Would I have to get rid of istringstream and think of another way?
Many Thanks in advance
Alex