I wanna to have the ability to write an XML file with XmlTextWriter or LINQ to XML but by the way I don’t want the file to be locked completely. I wanna the other processes to be able to read the Xml file. It should be locked only in write mode so that the others may not modify the file.
What is the best way to achieve this ?
I wanna to have the ability to write an XML file with XmlTextWriter or
Share
You need to set this when you open the FileStream. Try this:
As Yahia mentions, there is no guarantee that the data written at any point will be meaningful to a reader.