C# Program: File opening with exception handling

C# Program: File opening with exception handling