我是用一个软件运行后得到一个文本
文本是由如下这样一些内容组成(下面的只是其中一段,其余的是类似的重复的文本,只是我需要获取的值不一样)
现在就是要提取出 P T2 SD的值,并将他们分别赋给某个数组
本人C语言基础比较差,弄了好几天了,也没弄好,请大家帮帮忙,给个思路/提示也行... 谢谢了
示例文本内容:
Dataset :
D:/Bruker/TOPSPIN/data/STOCSY/nmr/Human Urine/6/pdata/2
AREA fit :
I[t]= P*exp(-t/T2)
128 points for Integral 1, Integral Region from 0.000 to 0.000 ppm
Results Comp. 1
P = 1.277e+000
T2 = 13.567s
SD = 6.446e-002
tau ppm integral intensity
674.000m 4.000 3.3837e+008 eliminated
921.000m 4.000 3.3533e+008 eliminated
1.168s 4.000 3.3166e+008 eliminated
1.415s 4.000 3.3144e+008 eliminated
1.662s 4.000 3.2925e+008 eliminated
1.909s 4.000 3.2954e+008 eliminated
2.156s 4.000 3.3067e+008 eliminated
2.403s 4.000 3.2544e+008 eliminated
2.649s 4.000 3.2677e+008 eliminated
2.896s 4.000 3.2613e+008 eliminated
3.143s 4.000 3.2473e+008 eliminated
3.390s 4.000 3.1975e+008 eliminated
3.637s 4.000 3.1791e+008 eliminated
3.884s 4.000 3.1967e+008 eliminated
4.131s 4.000 3.099e+008 eliminated
4.378s 4.000 3.0408e+008 eliminated
4.625s 4.000 3.0332e+008 eliminated
4.872s 4.000 3.0542e+008 eliminated
5.118s 4.000 3.0375e+008 eliminated