Open a file with Notepad in C#

前端 未结 6 606
春和景丽
春和景丽 2020-11-28 06:35

How I open a file in c#? I don\'t mean reading it by textreader and readline(). I mean open it as an independent file in notepad.

6条回答
  •  北荒
    北荒 (楼主)
    2020-11-28 06:52

    Use System.Diagnostics.Process to launch an instance of Notepad.exe.

提交回复
热议问题