path under linux and window

1. In Microsoft Windows, the file path uses \  , we need two \\ because 

strPath = "D:\\Program Files\\Microsoft Office\\Office15"

2. In Linux, the file path is 

strPath = "//home //Michael//workspace//hello.cpp" 

the root directory starts /

path under linux and window

上一篇:C#委托的最简单入门和理解


下一篇:(69)C# 流