Hi,
I'm trying to read from text file that is currently being used by other application (more precisely I'm trying to open current IIS log file).
I get EInOutError 32 (sharing violation). I tried to use "FileMode := fmOpenRead;" to open file in read-only mode, but it does not help!
Weird part is that "NotePad" can open that file without any problems! So there must be a way to do it. Anybody knows how to do it in Delphi?
Thanks
I'm trying to read from text file that is currently being used by other application (more precisely I'm trying to open current IIS log file).
I get EInOutError 32 (sharing violation). I tried to use "FileMode := fmOpenRead;" to open file in read-only mode, but it does not help!
Weird part is that "NotePad" can open that file without any problems! So there must be a way to do it. Anybody knows how to do it in Delphi?
Thanks