if not fileexists(path+'result.tmp') then
begin
filecreate('result.tmp');
assignfile(tmp,'result.tmp');
rewrite(tmp);--执行到这句时,报I/O32错误,请问怎么解决???
begin
filecreate('result.tmp');
assignfile(tmp,'result.tmp');
rewrite(tmp);--执行到这句时,报I/O32错误,请问怎么解决???
if not fileexists(path+'result.tmp') then
begin
FileClose(filecreate('result.tmp'));///////////////
assignfile(tmp,'result.tmp');
rewrite(tmp);
end;
Assignfile(MyFile,FileName);
Reset(MyFile);
...
CloseFile(MyFile); 没有用到"FileCreate",若文件不存在、就会自動建立呀!