I have a text file that have several entries, where each entry is separated by the number on the first row, and each part of the entry is separated by an empty row, like this: