/OpenFile.cs Secret
Created
February 28, 2018 20:52
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void OpenFile(string filePath) | |
{ | |
try | |
{ | |
File.Open(path); | |
} | |
catch (FileNotFoundException ex) | |
{ | |
Console.WriteLine("The specified file path not found, please enter another path."); | |
PromptUserForAnotherFilePath(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment