删除现有Xml文件时出错

删除现有Xml文件时出错

本文介绍了删除现有Xml文件时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个Xml文件.首先创建Xml时,我将检查文件是否已存在.如果存在,我正在尝试将其删除.删除现有文件时,我会收到类似以下错误:

该进程无法访问文件" C:\ Documents and Settings \ Administrator \ My Documents \ Visual Studio 2005 \ Projects \ XmlExercise \ XmlExercise \ bin \ Debug \ PurchaseBill.xml""


请帮忙.
在此先感谢

解决方案



I am creating a Xml file. While creating the Xml firstly I will check if the file already exists. If it exists I am trying to delete it. While deleting the existing file I will get error like:

"The process cannot access the file ''C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\Projects\XmlExercise\XmlExercise\bin\Debug\PurchaseBill.xml'' "


Please Help.
Thanks in advance

解决方案




这篇关于删除现有Xml文件时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 00:47