Hi All,
need to search a txt file which will "always" be in this format:
MCB # 2 ACQ 26-May-06 at 8:13:07 RT = 7201.0 LT = 7200.0
SEG # 1 ALPHA_1
No sample description was entered
ROI# RANGE( keV) GROSS NET +/- CENTROID FWHM FW.1M LIBRARY ( keV) Bq +/-
1 5044.46 5252.55 450 300 26 5207.31 15.97 60.45 No close library match.
2 5272.36 5480.44 954 943 31 5402.95 42.41 87.99 No close library match.
.......i need to get the date, and the gross and net values for each entry, this file has 2 entires 1 and 2, but sometimes there is a third. I have got some code which asks for the file, and a seperator, then prints everything to an excel sheet using the seperator to decide what goes in each cell, however this is not what i want, I just want the 3 items i mentioned above,e.g date gross and net values. Im using a macro on the excel file to open the txt file and extract the contents. I just dont know how to get just what i want, not the whole lot.
Thx, craig
need to search a txt file which will "always" be in this format:
MCB # 2 ACQ 26-May-06 at 8:13:07 RT = 7201.0 LT = 7200.0
SEG # 1 ALPHA_1
No sample description was entered
ROI# RANGE( keV) GROSS NET +/- CENTROID FWHM FW.1M LIBRARY ( keV) Bq +/-
1 5044.46 5252.55 450 300 26 5207.31 15.97 60.45 No close library match.
2 5272.36 5480.44 954 943 31 5402.95 42.41 87.99 No close library match.
.......i need to get the date, and the gross and net values for each entry, this file has 2 entires 1 and 2, but sometimes there is a third. I have got some code which asks for the file, and a seperator, then prints everything to an excel sheet using the seperator to decide what goes in each cell, however this is not what i want, I just want the 3 items i mentioned above,e.g date gross and net values. Im using a macro on the excel file to open the txt file and extract the contents. I just dont know how to get just what i want, not the whole lot.
Thx, craig
Comment