vb6.0读取文件问题

[复制链接]
查看11 | 回复2 | 2011-2-28 09:45:33 | 显示全部楼层 |阅读模式
文件 d:\1.txt 格式:宽带连接名 账户 密码(空格分开)如:rwpppoe 2:3oabckTIaaa 111111private uInfo$Private Sub Command5_Click()‘连接Open "d:\1.txt" For Input As #1
Input #1, uInfo
close #1
Shell "rasdial " & uinfo, vbHideEnd SubPrivate Sub Command3_Click()’断开连接
Shell "rasdial “ & split(uInfo," ")(0) & " /disconnect", ...
回复

使用道具 举报

千问 | 2011-2-28 09:45:33 | 显示全部楼层
'函数:一次性读文件至变量,非常快Function GetFile(FileName As String) As StringDim i As Integer, s As String, BB() As ByteIf Dir(FileName) = "" Then Exit Functioni = FreeFileReDim BB(Fil...
回复

使用道具 举报

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

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行