static void GetPathToFile() { try { FileProcessor.TrySetPath(InputUser.CatchUserPathToFile()); } catch (IndexOutOfRangeException) { StandardMessage.NoFileFound(); } }
static void LoadDataFromFile() { try { FileProcessor.LoadData(); } catch (IOException) { if (!FileProcessor.HasDefaultPath()) { StandardMessage.NoFileFound(); } } }