Dear all,

I would like to make a small script that does the following:

I have a file that at some point there is a section:

...
...
a heading is here ....
1 2 3 4 5 6 7 8
9 10 22 22 336
11252 12 25 3 6
more words in this line
....
....

I would only like to read the lines between the "a heading is here" and "more words in this line"


any suggestions how to extract the data using python?

Are these lines the only totally numeric lines in your file?

Are these lines the only totally numeric lines in your file?

No they are not. There is a lot of text and numbers throughout the file.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.