P
pu-tian
Unregistered / Unconfirmed
GUEST, unregistred user!
我在做一程序时,程序报一错I/O Error 123,查看文件是存在的,跟踪访问文件路径是正确的,怎么会报这种错误
var InFile,OutFile:File;
var InputFile:String;
if not FileExists(InputFile) then exit;
AssignFile(InFile,InputFile);
try
ReSet(InFile,1);
except
ShowMessage(Exception(ExceptObject).Message);
ShowMessage('File '+InputFile+' can not be ReadOnly!');
CloseFile(InFile);
SysUtils.Abort;
end;
var InFile,OutFile:File;
var InputFile:String;
if not FileExists(InputFile) then exit;
AssignFile(InFile,InputFile);
try
ReSet(InFile,1);
except
ShowMessage(Exception(ExceptObject).Message);
ShowMessage('File '+InputFile+' can not be ReadOnly!');
CloseFile(InFile);
SysUtils.Abort;
end;