小弟想要將A.cma的內容(除了第一行外)COPY到B.txt,但是為什麼 print #2,context 這行總是發生 '不正確的檔案模式' 的錯誤,請各位高手教教小弟,謝謝!以下附上小弟的程式:
Open "d:\A.cma" For Input As #1
Open "d:\B.txt" For Input As #2
p_flg = "N"
Do Until EOF(1)
context = ""
Line Input #1, context
If p_flg = "N" Then
p_flg = "Y"
Else
Print #2, context
End If
Loop
Close #1
Close #2