如何打开硬盘上的某个文件?
小弟我是新手,请教高手,打开硬盘上的某个文件的语句该怎么写?不胜感激!!!!
编码如下:
Private Sub Command1_Click()
filename = "f:\111.txt"
Open filename For Input As #1
Dim a As String, b As String
Do While Not EOF(1)
Line Input #1, b
a = a & b
Loop
Close #1
End Sub
提示错误:
实时错误:‘53’
文件未找到
我不知道是哪里出错啦?