求助,读取文本写入数据库
请大神帮忙解决一下VB6.0将数据读取到数据库中的问题。1,0
20004,0
-2.432280,0.766335
-2.510024,0.266551
-1.965815,-0.177701
-2.099091,-0.177701
-1.777008,-0.977354
-1.332756,-1.055098
-0.799654,-0.733016
-0.655272,-0.944035
-0.577528,-0.721909
0.499783,-1.055098
0.866291,-1.155055
1.199480,-0.910717
0.388720,-0.577528
0.155488,-0.555315
0.188807,-0.433146
-1.121736,0.222126
-1.166161,0.111063
-0.977354,-0.055531
-1.077311,-0.333189
-1.466031,-0.233232
-1.410500,0.099957
-2.432280,0.766335
-666666.0,-666666.0
2,0
20004,0
1.032886,-0.299870
1.399394,-0.077744
1.510457,-0.255445
2.121303,-0.344295
2.432280,-0.099957
2.476705,0.666378
2.476705,1.243906
1.454925,1.432713
1.043992,1.432713
0.755228,1.210587
0.344295,1.499350
0.144382,1.488244
-0.122169,1.110630
0.199913,0.932929
0.510890,1.099524
0.821866,1.010673
0.577528,0.888504
0.644165,0.499783
1.366075,0.610846
1.510457,0.288764
0.966248,0.211020
1.032886,-0.299870
-666666.0,-666666.0
......
655,0
30000,0
-61.083709,-40.126949
-666666.0,-666666.0
-999999,-999999
数据的格式大致像上面的一样,就是有很多相同的一小块一小块
数据说明,
1,0 其中数据1要读到数据库中的TgtID字段
20004,0 其中数据2004读到数据库的layer字段
-2.432280,0.766335 这两个数据分别读取到数据库的X和Y字段
每一小块结束的标志为-666666.0,-666666.0
整个文件结束的标志为-999999,-999999
数据表的字段
X Y TgtID layer
相关文件已上传
相关数据.zip
(413.27 KB)