you can go to each reservation number in your file and get that substring with a standart fuction then compare it.that should continue until end of the records.for example if your reservation number starts after ':' and ends with a newline or whitespace you can extract it easily.you can use getline() function to read a whole string with a delimiter for reading reservation number and compare it.
reservation number : ...
reservation number : ...
|