[求助]文件打开问题
输入信息,然后点保存:保存之后然后打开:
为什么打开之后光标却跳到了第二行?
我保存跟打开的代码是这样写的,如下:
打开文件的代码:
Text1.Text = ""
CommonDialog1.Filter = ".txt"
CommonDialog1.ShowOpen
Open CommonDialog1.FileName For Input As #1
Text1.Text = StrConv(InputB$(LOF(1), 1), vbUnicode)
Close #1
保存文件的代码:
CommonDialog1.Filter = ".txt"
CommonDialog1.ShowSave
Open CommonDialog1.FileName For Output As #1
Print #1, Text1.Text
Close #1
请兄弟们指教,谢谢!