读书人

想将一个文本文件的内容导入一个表的字

发布时间: 2012-03-09 16:54:56 作者: rapoo

想将一个文本文件的内容导入一个表的字段中,怎么做
文本文件:info.txt
表:table
表table中的一个字段:feature

info.txt内容如下:
2.64782e+006
2.59332e+006
1.82109e+006
...




[解决办法]
use table
copy stru to newtable fields feature
go top
use newtable in 0
select newtable
append from info.txt deli with blank
scan
replace table.feature with feature
skip in table
endscan

读书人网 >VFP

热点推荐