Need to read in file, looking for key terms
Posted on 2003-02-19
I need to write a program, that will read in an input file. The file is structured:
<TITLE>Then here is the title
Info that does with the title
and so on.
I need to be able to look through the file, find a <TITLE> and store the rest of the info on that line as the key, and store everything between that and the next title key as the data. I then make a pair of these things and put them into a list. What is the most efficient way to do this?