| 发表于:2007-09-21 15:57:39 楼主 |
一个代码: private sub command1_click() dim tmp as string open "c:\my documents\gmail.txt " for input as #1 open "c:\my documents\gmail2.txt " for output as #2 do while not eof(1) line input #1, tmp if instr(1, trim(tmp), "操作历史报告 ") > 0 then exit do if instr(1, tmp, "members/earn.php? ") > 0 then print #2, tmp chr (13) & chr(10) end if close #1 close #2 end if loop end sub 遇到实时错误 文件无法打开 调试后黄色显示在: open "c:\my documents\gmail.txt " for input as #1 我思来想去很久,代码的逻辑应该没什么错误,怎么会发生这种情况?请大家指点一下,不胜感激。 |
|
|
|
|