May-01-2018, 02:34 PM
Hello everyone,
Somme may remember a similar thread ...
I have txt files with the following structure :
I want to select the name of the file and the Cl and Cd values (-2.868 and 0.02003 in this particular case).
For know I used to convert the text into a string and did some slicing to get the name and the values.
But since "?"can be negative, this method doesn't work (slicing boundaries change) !!
Do you know an easy way to solve this problem ?
Thanks in advance,
Scientifix
Somme may remember a similar thread ...
I have txt files with the following structure :
Name = [102, 22]_[152, 32]_?_-20_-20 Mach = 0; Re = 2000000; T.U. = 1.0; T.L. = 1.0 Surface Finish = 0; Stall model = 0; Transition model = 1; Aspect Ratio = 0; ground effect = 0 ? Cl Cd Cm 0.25 T.U. T.L. S.U. S.L. L/D A.C. C.P. [°] [-] [-] [-] [-] [-] [-] [-] [-] [-] [-] 0.0 -2.868 0.02003 1.113 1.521 1.772 1.523 1.963 -143.170 0.250 0.638Where the "?" sign (first line) can be 1,0 or -1.
I want to select the name of the file and the Cl and Cd values (-2.868 and 0.02003 in this particular case).
For know I used to convert the text into a string and did some slicing to get the name and the values.
But since "?"can be negative, this method doesn't work (slicing boundaries change) !!
Do you know an easy way to solve this problem ?
Thanks in advance,
Scientifix