How does default/relative path resolution work in .NET?

后端 未结 4 631
南旧
南旧 2021-02-08 23:31

So... I used to think that when you accessed a file but specified the name without a path (CAISLog.csv in my case) that .NET would expect the file to reside at the same path as

4条回答
  •  野性不改
    2021-02-09 00:19

    You can use this to specify a path that resides at the same path of your exe @"..\CAISLog.csv". Please note that the double dots refer to the parent directory of where ever your .exe lies.

    RWendi

提交回复
热议问题