Since an illegal slash is not allowed in the file name, one simple way is to split the SaveFileDialog.Filename with String.LastIndexOf; eg:
string filename = dialog.Filename; string path = filename.Substring(0, filename.LastIndexOf("\")); string file = filename.Substring(filename.LastIndexOf("\") + 1);
rjzii
source share