[求助]关于文件的操作的错误问题
Private Sub Command1_Click()Dim strfilename As String
Dim nfilenum As Long
Dim strall As String
Dim strline As String
strfilename = App.Path & "11.txt"
nfilenum = FreeFile
Open strfilename For Input As nfilenum
Do While Not EOF(nfilenum)
Line Input #nfilenum, strline
strall = strall & strline & vbCrLf
Loop
Label1.Caption = Label1.Caption & strall
End Sub
我在窗体上画出了一个label和一个command
并且在C:\Program Files\Microsoft Visual Studio\VB98下建立了一个名为“11.txt”的文件
怎么运行时点击command按扭后出现"文件未找到"的错误
并且点调试按扭后“Open strfilename For Input As nfilenum”以黄色的提示 显示
请问大家错误在哪里啊?
谢谢了