I have used xmltextwriter to create xml file and saved on development D: drive. now i want to allow user with dialogue box to save file at desired location.
thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You don’t specify the environment, here a code snippet for WinForms:
The
GetWriterForFolderfunction lets the user to select a folder where file will be saved, you have to provide a file name as parameter. Like this:The
GetWriterForFilefunction let the user select a folder and the file name to use. Like this: