
vb中怎样使记事本中的内容显示在文本框中
展开全部
关于读取记事本文件相对简单,就是把文件以Input方式打开,然后读取数据到文本框中去,就可以了.
open "文件名" for input as #1
dim lineGet as string
while not eof(#1)
line input #1,lineGet
text1.text =text1.text & lineGet
wend
open "文件名" for input as #1
dim lineGet as string
while not eof(#1)
line input #1,lineGet
text1.text =text1.text & lineGet
wend
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询