Apr-27-2018, 06:30 PM
(This post was last modified: Apr-27-2018, 06:30 PM by Scientifix.)
Hello everyone !!
I have a very large number of .txt files that all have the same structure (only numerical values are different) and are all in the same folder :
Since all files have the same structure, that all Cl values are negative with the same number of digits, they are therefore always at the same location.
I'd like to browse all .txt file from my folder and extract the Cl value in each of them in order to write it in a new .txt file (in which at the end all Cl values will be written).
Is it possible and if yes how can I do it ?
Thanks in advance for your help,
Scientifix
I have a very large number of .txt files that all have the same structure (only numerical values are different) and are all in the same folder :
Name = [102, 22]_[152, 32]_1_1_1 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.638The only value I am interested in is Cl (-2.868 here).
Since all files have the same structure, that all Cl values are negative with the same number of digits, they are therefore always at the same location.
I'd like to browse all .txt file from my folder and extract the Cl value in each of them in order to write it in a new .txt file (in which at the end all Cl values will be written).
Is it possible and if yes how can I do it ?
Thanks in advance for your help,
Scientifix