|
-
Mar 27th, 2003, 08:05 PM
#1
Thread Starter
Lively Member
Persistent File I/O - Possible
I would like, if possible to attach to a log file and read newly created data from it. For instance, I have a third party application that on occasion writes to a log file. I would like to find out when the file was written to, then explicitly get the new data\line to write to a listbox. Is this possible?
I can use the FileSystemWatcher to flag the change, but how do I explicitly pull the new data from the file and leave all the rest behind. Also, these files could be quite large, 5 meg plus in some instances.
-
Mar 27th, 2003, 09:29 PM
#2
Why not store the file length inbetween opening, then the next time you open it you can skip x amount of bytes or space according to how long the file used to be.
-
Mar 28th, 2003, 05:55 AM
#3
Thread Starter
Lively Member
Deffinitely something I had not thought of! Excellent, thanks for the feedback. I will give this a try. Any other thoughts and opinions would also be appreciated....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|