It looks like you have a few steps to do to solve this.
- identify the line from the sequence file, and split it into component pieces
- Read the number of lines from the co-ordinate file and assign to each of the component pieces
The problem seems to be ill defined. For example, you refer to "entry number 1 but not all". Do you mean "entry number ONE but not all"? What happens in the case of "not all"? Is there a problem domain into which this problem fits? If so, there may be a module that reads these types of files already.
Update: This could also be afternoon fog. Is the information on the lines like >ONE indicating the name of a file to read?
--MidLifeXis
The tomes, scrolls etc are dusty because they reside in a dusty old house, not because they're unused. --hangon in this post