OpenFileDailogBox
-
Hi, I am trying to open a file that not exit. so want i want if file not there it should create a file with same name. Thanks.
-
Hi, I am trying to open a file that not exit. so want i want if file not there it should create a file with same name. Thanks.
System.IO.File.Exists - something like that. If it doesn't exist, create it.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog
-
System.IO.File.Exists - something like that. If it doesn't exist, create it.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog
-
Well, which bit is confusing you ? I can't tell you how to create the file, I don't know why you're creating it, or what you want to put in it.
Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
-
give a file name to openFileDialog you can confirm if the file exist if not you can create the same name file.
I want to make some friends here
Hi. Thanks for your help. I did same and it's working. now what i want.. if folder not exit then how to check. for example: Path C:\XMLFiles\employee.xml if file not exit we can check and create new file with same name but if folder not exit then what to do. how to check and how to create new folder with same name. help me. Thanks