I was building a simple web system which relied on XML files. On initiation, the system would open the XML config file, read it and include other XML files defined in it:
1 2 3 4 |
FileStream fr = new FileStream(xmlPath, FileMode.Open, FileAccess.Read, FileShare.ReadWrite); //Creating the document XmlDocument myXmlDocument = new XmlDocument(); myXmlDocument.Load(fr); |
The operation was done within a WebForm and it worked just fine. I also had a WCF service whose job was to