You will have to base your solution on the fact that there are small number of possible continents. One rudimentary approach is read in entire lines to replace each occurrence of each continent name with a delimited string . For example replace "North America" with ", North America , " Then read the resulting strings as a delimited file.
... View more