title: System.IO.Exception : the directory name is invalid
body: <p><a href="https://i.stack.imgur.com/gY3KS.png" rel="nofollow noreferrer">enter image description here</a>i want to save to save a selected file in a specific folder. For that, i used a normal  FileDialog. Additional, the main aim is that the opened file which will be open with this FileDialog, must be saved automatically in the chosen folder. But i get a System.IO.Exception which says that the directory name is invalid.</p>
  
  <p>Can you help me to find out where is the problem ? I guess that there is a problem with my code statement.. Do you have any ideas or other suggestions for writing such a code ?
  <a href="https://i.stack.imgur.com/MPeLQ.png" rel="nofollow noreferrer">The code</a></p>