string path = @”c:\temp\MyTest.txt”;
@的意思是后面出现的’\’符号不进行转义
还有另一种写法也可以:string path = “c:\temp\MyTest.txt”;
string path = @"c:\temp\MyTest.txt";这里的@是什么意思
最新推荐文章于 2019-03-20 09:54:59 发布
string path = @”c:\temp\MyTest.txt”;
@的意思是后面出现的’\’符号不进行转义
还有另一种写法也可以:string path = “c:\temp\MyTest.txt”;