Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (File.Exists(binaryFilePath))
- {
- Program.DisplayMessage("The file: " + binaryFileName + " exist. You want to overwrite it? Y/N");
- string overwrite = Console.ReadLine();
- while (overwrite != null)
- {
- if (overwrite.ToUpper() == "Y")
- {
- WriteBinaryFile(frameCodes, binaryFilePath);
- } if (overwrite.ToUpper() == "N")
- {
- throw new IOException();
- overwrite = null;
- } if (overwrite.ToUpper() != "Y" && overwrite.ToUpper() != "N")
- {
- Program.DisplayMessage("!!Please Select a Valid Option!!");
- overwrite = Console.ReadLine();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement