EDN Admin
Well-known member
I use an XmlTextWriter to create an XML document. The document is similar to a log of the application. Most of the time this document will be filled and properly closed. Works great. However, on occasion Id like to throw the document away rather then
close it. I would think dispose would be the way to do that, but it is protected and cant be used from the XmlTextWriter. I dont see any other methods or ways of doing this. I cant just close the document and delete the resulting file as the
files are being harvested by another app which could pick it up in between the close and the delete. Any suggestions?
View the full article
close it. I would think dispose would be the way to do that, but it is protected and cant be used from the XmlTextWriter. I dont see any other methods or ways of doing this. I cant just close the document and delete the resulting file as the
files are being harvested by another app which could pick it up in between the close and the delete. Any suggestions?
View the full article