C # Opening Files

2

I would like to know how to open a file in your native program with C# .

  

Example:
  I have a file .xls (worksheet).   When I want to open it,   my system makes a request and opens it in excel.

Thank you in advance

    
asked by anonymous 19.05.2015 / 20:13

1 answer

3

Use the Process class:

System.Diagnostics.Process.Start("myFile.xls");
    
19.05.2015 / 20:19