KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have two different modules that need access to a single file (One will have ReadWrite Access - Other only Read). 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); Th problem is that the second module fails while trying 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 some additional security parameters here?
Tags (comma-separated)
Save Edits
Cancel