var
f: file;
begin
//filemode := fmOpenRead;
system.assign(f,'C:\testfile.dat');
system.reset(f,1);// <---- here is exeption, if file is already read by third application
system.close(f);
end; But if uncomment filemode := fmOpenRead; all is okey. Why? filemode is used only by sysutils unit, and not by system unit