用VB数据库读TXT数据文件后怎么怎么弄成数组

[复制链接]
查看11 | 回复1 | 2011-9-5 12:02:53 | 显示全部楼层 |阅读模式
Private Sub Command1_Click()Dim str1(100) as long‘读取文件中100列Dim str2 As StringOpen "E:\数组.txt" For Input As #1 'i=1While Not EOF(1)if i=1 then i=2 '第一行不要 是表头else Line Input #1, str2 str1 = Split(str2, "") '两个数据之间是几个空格,这儿的引号之间就是几个空格end if
读入到数组中后要进行处理 在读取后面的数据
WendClose #1End...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行