C# Configuration Files

后端 未结 5 2017
说谎
说谎 2021-02-03 14:58

Okay, so a while ahead I posted how to read other config files of other programs (here is the link Previous Post. I managed to do it. But now there is another problem. The scena

5条回答
  •  南旧
    南旧 (楼主)
    2021-02-03 15:49

    What code are you using to get the FileName and Path back from the OpenFileDialog.

    Is it a fully qualified path to the file ?

    e.g.

    openFileDialog1.FileName; //Contains "C:\\Path\\To\\The\\File.txt"
    

    By the sounds of it, whats being saved is only a filename, so your application is only looking in the current path.

提交回复
热议问题