Grouping two related lines together from a file...help!
Hi, if I have a file that looks like this
--------------------
8
ihave
22
a
0
aheadache
---------------------
where the first line is an integer less than 100, and the next line are some letters less than 1000.
The first two lines (8 and ihave, for example) go together (8 is like the number of times the word ihave appears). Is there a way I can store these two together and then read the next two and store them together and then the next and so on?