Ongoing file read

  • Thread starter Thread starter Lilith
  • Start date Start date
L

Lilith

I'm wondering if C#/.Net would have provisions for the followng. I
have an outside application that generates a text file ongoing. I'd
like to be able to open the file and read it into a stream that
updates/appends whenever something is added to the end of the file.
Ultimately I want to scan the file/stream as it's built for
indications of problems with the system and have an email sent to me
notifying me of the potential problem. If possible I'd also like to
be able to detect when the other application has closed the file,
though I doubt this is a possibility.

Thanks,
Lilith
 
I may be able to handle that. I should be able to maintain an offset
from the last read and seek to that point on the next read.

Thanks,
Lilith
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top