Sign in to follow this  
Warhorseii

Stream question...

Recommended Posts

I have a log file being updated by a third party program... I am trying to figure out how to have my app. recognize that the log file has been edited or data has been appended to that log file. Sort of like a listen() for a file change. I looked through all the stuff in my book on file I/O and cannot seem to come up with any ideas. I assume there is something in the windows API for this... Any ideas would be helpful, -- Warhorseii

Share this post


Link to post
Share on other sites
Each file should have a timestamp indicating when they've last been modified. Check it. How to do that depends on what OS you're using.

Share this post


Link to post
Share on other sites
The .NET framework contains a FileSystemWatcher class which can be used for this.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this