in reply to read nth lines in a text file

format which is composed by four lines

In your example, the first group consists of only 3 lines, the second 4, and the last 1. So which is it?

I commend you for posting a sample, but you need to make it sufficient (and accurate enough) that we can get an idea of the reality. So, how about you post a couple more (complete sets of) records. And this time please use <code></code> tags.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.