I have two different modules that need access to one file (One will have ReadWrite Access access - read-only for others). The file is opened using the following code in one of the modules:
FileStream fs1 = new FileStream(@"D:\post.xml", FileMode.Open, FileAccess.ReadWrite, FileShare.Read);
The problem is that the second module crashes when you try to open the same file using the following code:
FileStream fs = new FileStream(@"D:\post.xml", FileMode.Open, FileAccess.Read);
Do I need to set additional security parameters here?
A9S6
source share