I have about 20 comps using my VSTO add-in in MS Word working in local network.
I have to write some statistic from this machines in one xml file common for all of them placeed in shared folder.
How can I approach this simply but correctly if I know that they will definitely try to access the file at the same time?
I know, that database/queue propably will be the best (I don’t have experience), but first I’am looking for solution on file system.
I also wouldn’t want to stop working while waiting for the file to be accessed (I don’t have experience with async functions too)?
Do you have any suggestion or C# code snippet?