在VB里用open函数打开文件提示“文件已被打开”是怎么回事?仔细检查过了,之前的open都合法close了,唯独这个说文件已打开
错误代码如下:
Dim g As string
Open "D:\use\gold.txt" For Input As #1 '错误的黄色警告在这
Do while not EOF(1)
Line input #1,g
Loop
Close #1
华丽的分割线
错误代码如下:
Dim g As string
Open "D:\use\gold.txt" For Input As #1 '错误的黄色警告在这
Do while not EOF(1)
Line input #1,g
Loop
Close #1
华丽的分割线
Fn=FreeFile
Open "D:\use\gold.txt" For Input As #Fn '错误的黄色警告在这
Do while not EOF(Fn)
Line input #Fn,g
Loop
Close #Fn