I have the text file (input.txt)
*HEADING
*NODE, NSET=ALLNODES
1, 0.000000e+00, 0.000000e+00, 0.000000e+00
2, 2.500000e-01, 0.000000e+00, 0.000000e+00
*ELEMENT, TYPE=S9R5, ELSET=EB1
...
...
...
...
**
* END OF FILE
My goal is replace all the lines between the lines (*ELEMENT, TYPE=S9R5, ELSET=EB1
) and (**
) with a new lines.
and keep the rest of the file unchanged. Any solution using: open('input.txt', 'w') as f1:
would erase everything in the file and write the new two lines and this is not the thing I need.