Open a .txt file in Notepad

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all,

In our application, we need to allow users to look at the content of one
specific log file (txt extension) that is created by the application in
notepad.
Although, it seems like an easy task, but I cannot accomplish this.
Any suggestion would be really apprecieated.
Thanks in advance.

Roy
 
Try
Process.Start("<filename to open.txt>");

You'll need a using for System.Diagnostics. It opens the application
associated with txt files and loads the named file.

HTH
Steve
 
Steve, thanks for your response.

Steve Barnett said:
Try
Process.Start("<filename to open.txt>");

You'll need a using for System.Diagnostics. It opens the application
associated with txt files and loads the named file.

HTH
Steve
 
Back
Top