C# Opening Files

Asked

Viewed 101 times

2

I wonder how to open a file in your native program with C#.

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

Thanks in advance

  • Could improve your question a little?

1 answer

3

Use the class Process:

System.Diagnostics.Process.Start("myFile.xls");

Browser other questions tagged

You are not signed in. Login or sign up in order to post.