how i checking fail open or close i'ts it ?
I tried this, but it always shows me that the file is closed.
AssignFile(F, 'C:\Users\Public\print\all\all.csv');
{$I-}
Reset(F);
{$I+}
if IOResult = 0 then begin
ShowMessage('file i'ts closed');
end;
if IOResult <> 0 then begin
ShowMessage(''file i'ts open');
end;