Hello please see link below of previous solved post.
Copy specific lines from text files into excel
This VBA code allowed me to open all the text files in a folders and load specific lines into an excel spreadsheet.
However, I am now working with bigger files and more of them. Using VBA is no longer an option has it takes too long and how a data limit.
I'm wondering if I there is any existing python code that can extract and specific lines from each data file and either save as a new document or save itself as its current file name.
Sample code:
DATASET UNSTRUCTURED_GRID
POINTS 5 float
0.096853 0.000000 0.111997
0.096853 -0.003500 0.111997
0.096890 0.000000 0.084015
0.096853 -0.003500 0.111997
0.096890 -0.003500 0.084015
CELL_DATA 5
SCALARS pressure float 1
LOOKUP_TABLE default
-0.000000
-0.000000
-3.000000
-2.000000
-6.000000
Any tips on this would be higher appreciated. Thanks, Jon