Hello,
I am trying to overwrite a file in this way:
File.Copy(this.file_name,this.file_name,true);
The problem is that I get this error:
An unhandled exception of type 'System.IO.IOException' occurred in
mscorlib.dll
Additional information: The process cannot access the file "C:\Documents
and Settings\My Documents\abc.xml" because it is being used by another
process.
I did the :
this.xml_reader.Close();
before I called the File.Copy but I still get this error,why?
Thank you!
*** Sent via Developersdex http://www.developersdex.com ***