我是C#的入门者。我想打开test.txt。在上一个项目中,我使用下面的代码打开了它,但是在新项目中什么也没有发生。我尝试了很多其他的灵魂,但是什么都没有...
static void Main(string[] args) {
string path = @"C:\\Users\\SB-Darjan\\Desktop\\Loader\\MG30\\MG30\\test.txt";
Process.Start(path);
}
[当在路径中使用@符号时,应使用单个反斜杠。
static void Main(string[] args)
{
string path = @"C:\Users\SB-
Darjan\Desktop\Loader\MG30\MG30\test.txt";
Process.Start(path);
}