Hi, I have written a small tool that responds to that logfiles are updated.
FileStream fs = new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.ReadWrite)
Which - according to my knowledge - is the way to read a file without disturbing other users of the file.
But when I run this program, writers to this file may fial and I need to avoid this by all means.
Do you know, what I am doing wrong? It should be said, that I use FileSystemWatcher in order to detect if the file is updateed or not. Can that be the reason?
View Complete Post