|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
FileMode.CreateNew when file already existsIf I use System.IO.File.Open with FileMode.CreateNew, and the file
already exists I get an IOException. Ok... but there is no specific exception for "file already exists", so how do I determine programatically that that was indeed the cause? doug mansell wrote:
> If I use System.IO.File.Open with FileMode.CreateNew, and the file oh silly me...> already exists I get an IOException. Ok... but there is no specific > exception for "file already exists", so how do I determine > programatically that that was indeed the cause? > System.Runtime.InteropServices.Marshal.GetHRForException |
|||||||||||||||||||||||