Allow me to be more specific: I have quite a quantity of folder, each of them containing a .txt file. I would like to extract some text from the header of that file to put it in a LaTeX presentation (one presentation per folder).
One problem is the structure of this header: I'ts only few datas lost in hundreds 'spaces', and I have no idea how to select the part I needs.
V I T34CPT7 C 06/02/15 09:38:15 AH 0.000000E+0015 FZ T34CPT7 FX 0.000000E+00 FQ 1.000000E+01 FM 1 0.000000E+00
Have someone any idea how to extract a part of this header (for example the 'T34CPT7' part) and use it to fill automatically a field in my LaTeX document ?

sedorawk, which read those files and create some.texcode which can be input – Jun 10 '15 at 16:12awkorpythonas with both it is easy to ignore whitespace. As Christian says, exactly what needs to be done depends upon the structure of these files and how you recognize the "header". This question is probably best diverted to stackoverflow as it is looking more like a programming question than a TeX one. – Jun 10 '15 at 17:08