I read an ascii file with an fstream. A line contains at least two repetitions of the following patern (and at most 128) :
%d %llu %d %d %llu %d %d %llu
For each line i need the max of the third %d of each pattern in the line
i can't find a way to do it properly with sscanf.
myFstreams->getline (buffer, MAX_BUFF-1);
while( ... ){
sscanf (buffer," %*d %*llu %*d %d %*llu %*d %*d %*llu",&number);
if(number>max) max=number;
//modify buffer ???
}
any help would be greatly appreciated.