C
Christian Havel
Hi,
I have the following situation:
-> app1 writes data to a file
-> app2 (a service) is notified when the file is changed using the
FileSystemWatcher
-> app2 reads the last added data and should remove the read data from the
file
Well, I think I can get a problem, if app1 tries to write data to the file,
while app2 is removing the content from the file at the same time. How can
this problem be solved?
Christian
I have the following situation:
-> app1 writes data to a file
-> app2 (a service) is notified when the file is changed using the
FileSystemWatcher
-> app2 reads the last added data and should remove the read data from the
file
Well, I think I can get a problem, if app1 tries to write data to the file,
while app2 is removing the content from the file at the same time. How can
this problem be solved?
Christian