hi, i have a input file for my program and its full of the same typ of structure, ive put an example below. I would idealy like to carve out the data inbetween <gg> and </gg> but so far im having trouble as the data can be varying length. So far I can find the occurance of the begining of the string but i dont know how to read the data until it reaches the ending criteria. I hope that made sense

<gg>ADADDADADADADA </gg><gg>ADADDADADADffffADA </gg><gg>ADADDDA </gg>

Code:
string line;
string str = "<gg>"

               getline (infile,line);      	      
	        size_t found;

		if (  found = line.find(str));
                 {

                 }