I have a txt file name 'test.txt' and want to skip the first rows until I get to the line with the string "~A".
At this line, I want to remove "~A" and create a dataframe with 3 columns named 'Stats1', 'Stats2' and 'Stats3' and the related values below.
Also, I do not want to use any 'input' function to skip rows while opening the file as I would like to generalize this to other files.
Here is how the file looks like:
Text 1
Text 2
Text 3
Text 4
~A Stats1 Stats2 Stats3
1 2 3
6 6 7
8 9 3
Thank you!