Check for the country first in the file, once it found, assign the values for country, capital and population from that line, then make the display out of the loop