从文件里面如何提取有用的信息
我有一个文件,比如:N1D04-14-2005T11:05:32X106272998Y438023518S23.53E0H1.02
N1D04-14-2005T11:05:33X106272945Y438023580S23.58E1H1.03
N1D04-14-2005T11:05:34X106272891Y438023640S21.98E0H0.99
N2D04-14-2005T11:05:35X106272837Y438023702S21.82E0H1.00
N2D04-14-2005T11:05:36X106272781Y438023761S21.60E0H1.04
N2D04-14-2005T11:05:37X106272728Y438023823S21.02E0H0.97
N3D04-14-2005T11:05:38X106272670Y438023878S21.29E0H1.03
N3D04-14-2005T11:05:39X106272614Y438023938S20.53E0H1.01
N3D04-14-2005T11:05:40X106272555Y438023994S20.32E0H1.00
N4D04-14-2005T11:05:41X106272497Y438024051S19.77E0H0.98
N4D04-14-2005T11:05:42X106272436Y438024104S19.56E0H1.05
我只需要把里面X,Y,S,H后面的值读取出来,放在不同的数组里面!
同时统计这个文件总共有多少行,
请高手赐教!