5 * .dat files here: https://filebin.net/pkh86usc4j7ttjkf
Each of them has several parameters. However, we only focus on two lines:
xx...... ...... yy
For every file
yy are different values. For example
0.1, 0.3, 0.4, ... and
-13.45... and so on.
We want to extract
yy from different files and collect them in a text file. The mentioned text file in a desired situation contains two columns as:
0.3 -14.335415618223263 0.4 -17.957315618223263 0.7 -12.554415618223263 1.0 -10.997315618223263
It is difficult for us because we cannot extract values if they are between different parameters.
How can we write code in Python to achieve such a goal?