In a windows application I have an xml file which is readable and writeable. I wnat to ensure that this file is writeable if it is set to read-only.
I am doing my work using the code:
the code at line number 11 throws an exception when file is read-only. What should I do to avoid this ? How to make it writeable? Any help...
I am doing my work using the code:
Code:
Dim afpXmlDocumnet As XmlDocument = New XmlDocument afpXmlDocumnet.Load(filename) 'reading some nodes ............................ 'writing to some node ............................ 'saving the file afpXmlDocumnet.Save(appPath)
the code at line number 11 throws an exception when file is read-only. What should I do to avoid this ? How to make it writeable? Any help...
Comment