Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Opening file as read-only

Status
Not open for further replies.

alexerm

Programmer
Feb 27, 2003
17
CA
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top