我尝试用c#语言中的记事本++打开用于阅读的文件。 我使用这个命令:在c中用记事本++阅读的打开文件#
Process myProcess = new Process();
Process.Start("notepad++.exe", @"c:\file name for test.txt");
记事本++无法打开全名该文件,
记事本+下调名在4部分,并返回该消息
C:\文件不存在。创建它?
c:\ name does not exist.create it?
c:\ for does not exist.create it?
c:\ test.txt does not exist.create它?
版记事本++:9.4.2
在较新的版本我没有这个问题,但我需要用记事本++的所有版本。
一般情况下,文件名和文件系统不一样的空间。在测试(以及命名文件)时考虑到这一点 – Delioth