Hi keid,
Please find one way to do it below. The basic idea is to read in everything first from data.txt and to throw away lines which we know aren't data.
The key for you is marked in line # A. $content contains, e.g., "1 4" as the first element. I split it here into a list with just two...