open filename for input as #1
while not eof(1)
line input #1,value
text1.text=text1.text+value+vbcrlf
wend
close #1
while not eof(1)
line input #1,value
text1.text=text1.text+value+vbcrlf
wend
close #1
解决方案 »
- 关于在记事本中编辑的错误
- Word如何一次撤销一个宏的全部操作?
- 求助解决一个BUG-[如何在ado中判断一个数据库中某个表是否已存在]
- 在线等GDI+如何获取Graphics对象
- CommandButton在XP系统中显示为98/2000样式,不解.
- 关于图片显示的问题... ... ... ... ... ...
- 60'求解比较简单的数据问题,请帮忙!
- 请帮我找一下VB6的updown控件
- VB.NET除了使用遍历的方法,还有没有其他针对数组进行操作的方法
- 我是VB新手请各位大侠帮助我?
- 如何配置DAO????????????????
- 可否在 vb程序中 嵌入 asp的解释程序,让它来在程序运行中,解释asp代码(页面)!!!!
open filename for input as #1‘打开文件以读取内容
while not eof(1)’如果没到文本的最后
line input #1,value‘读入下一行
text1.text=text1.text+value+vbcrlf
wend
close #1’关闭文件,#1是文件号
Dim TempFile As Long
Dim LoadBytes() As ByteTempFile=FreeFile
Open 文件名 For Binary As #TempFile
Redim LoadBytes(1 To Lof(TempFile)) As Byte
Get #TempFile,,LoadBytes
Close TempFileText1.Text=StrConv(LoadBytes,vbUniCode)把TextBox内容写入文本文件:
Dim TempFile As Long
Dim SaveBytes() As ByteSaveBytes=StrConv(Text1.Text,vbFromUniCode)TempFile=FreeFile
Open 文件名 For Binary As #TempFile
Put #TempFile,,SaveBytes
Close TempFile