J
Jesper
How can I open a textfile from C# using notepad (or the
user assigned application for this).
user assigned application for this).
How can I open a textfile from C# using notepad (or the
user assigned application for this).
How can I open a textfile from C# using notepad (or the
user assigned application for this).
True, but he said to open the text file in notepad or whatever applicationThat will not necessarily open notepad. It will open the text file with
whatever program is associated with .txt, that's by default notepad but
can
be changed (on my system it's textpad). That is probably what you want
but
in the case you want notepad explicitly, use:
System.Diagnostics.Process.Start( "notepad.exe", "text.txt");
True, but he said to open the text file in notepad or whatever applicationThat will not necessarily open notepad. It will open the text file with
whatever program is associated with .txt, that's by default notepad but
can
be changed (on my system it's textpad). That is probably what you want
but
in the case you want notepad explicitly, use:
System.Diagnostics.Process.Start( "notepad.exe", "text.txt");