Save File dialogs are supported by the SaveFileDialog class. These dialogs let the user specify the name of a file to save data to. These dialogs are the same as the standard Save File dialog box used by Windows; you can see a Save File dialog in Figure 9.4 from the SaveFileDialog project on the CD-ROM.
You can use the ShowDialog method to display the dialog box at run time. You can use the FileName property to get the file the user selected, open a file in read-write mode using the OpenFile method, and so on.
You also can set the handy CheckFileExists and CheckPathExists properties to True to check if a specified file or path already exists, and if it should be created otherwise.