a line like 2 (5) cannot be expected, what can be expected is that after a count of 23 there will be the next number OR 22 there will be a blank line followed by the next sequence number. So the line will just be
Aha!
Writing code to parse files is a lot easier once you characterize the structure of the file as succinctly and completely as possible. Your first few descriptions left out a couple of key details, I think. Can we assume that this is a complete description of a valid data file?
* The file starts with 3 or 4 blank lines.
* The rest of the file is made up of an arbitrary number of sets.
* Each set begins with a set identifier line
* A set identifier line is followed by 22 or 23 lines of data mixed with blank lines.
* If a data set has 23 lines, the last line will be a blank.
* A set identifier line begins with a number that we'll call a 'set number.'
* The set numbers should be in sequence.
Anything else I'm missing?
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]