.NET ez 2011-11-29
如果有路徑需要組合,不需要透過字串組合,只要使用Path即可。
string PathStr = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "a.txt"); Console.WriteLine(PathStr);
標籤: .NET
本文章網址:
https://www.ez2o.com/Blog/Post/csharp-File-Route-Path-Combine
https://www.ez2o.com/Blog/Post/42
https://www.ez2o.com/Blog/Post/csharp-File-Route-Path-Combine
https://www.ez2o.com/Blog/Post/42