How about opening it with notepad from within the delphi program? I presume 
this is for the user of the program, not some internal requirement to process 
the file?
 
Dave

--- On Mon, 8/11/08, Doug Hale <[EMAIL PROTECTED]> wrote:

From: Doug Hale <[EMAIL PROTECTED]>
Subject: [delphi-en] How to open a file for read with other process writing it.
To: [email protected]
Date: Monday, August 11, 2008, 8:01 AM






I have some log files that I want to monitor in real-time. The files can 
be opened by Notepad but I have not been able to open them it a delphi 
program. The error says the file is being used by another process. I 
have tried opening the file with TFileStream with fmOpenRead, 
fmShareDenyNone.

What do I need to do to read a file that is currently being written by 
another process? I know it can be done because Notepad can do it.

Thanks,
Doug

 














      

[Non-text portions of this message have been removed]

Reply via email to