求助 vb2012或者vb2010 如何存储为txt文件和读取 vb6.0会
vb2010吧
全部回复
仅看楼主
level 1
2652152 楼主
求助 我自己折腾了好久了 新手新手求支援 下面是vb6.0的代码
Private Sub Command1_Click()
Open "test.txt" For Output As
#1 Print #
1, Text1.Text Print
#1, Text2.Text Close #
1
End Sub
Private Sub Form_Load()If Dir("test.txt", vbSystem) <> "" Then Open "test.txt" For Input As
#1 Line Input #
1, s1 Line Input
#1, s2Close #
1Text1.Text = s1Text2.Text = s2End If
End Sub
2012年11月30日 00点11分 1
level 13
插入代码段里有
2012年11月30日 09点11分 2
level 13
System.IO提供对文件进行操作的类
2012年11月30日 12点11分 3
level 1
2652152 楼主
谢谢 现在用 保存长数据 读取指定位置字符达到目的了
2012年11月30日 13点11分 4
1