public void EditFile()
        {
            RequestDisplay.DisplayRequestForFilePath();
            FilePath = GetterFilePath.GetFilePathFromUser(DummyConsole);

            if (File.Exists(FilePath))
            {
                LaunchingNotebook();
            }

            else
            {
                MessageDisplay.DisplayOnlyMessageAbout_FileDoesNotExist();
            }
        }
Example #2
0
        private void FileEncoding()
        {
            RequestDisplay.DisplayRequestForFilePath();
            FilePath = GetterFilePath.GetFilePathFromUser(DummyConsole);

            if (File.Exists(FilePath))
            {
                FileContentEncoding();
            }

            else
            {
                MessageDisplay.DisplayOnlyMessageAbout_FileDoesNotExist();
            }
        }
        public void ReadEncryptedFile()
        {
            RequestDisplay.DisplayRequestForFilePath();
            FilePath = GetterFilePath.GetFilePathFromUser(DummyConsole);

            if (File.Exists(FilePath))
            {
                ReadEncryptedContent();
            }

            else
            {
                MessageDisplay.DisplayOnlyMessageAbout_FileDoesNotExist();
            }
        }
Example #4
0
        public void FileCreation()
        {
            RequestDisplay.DisplayRequestForFilePath(GetMessageToUser());
            FilePath = GetterFilePath.GetFilePathFromUser(DummyConsole);

            if (!File.Exists(FilePath))
            {
                TryToCreateFile();
            }

            else
            {
                MessageDisplay.DisplayOnlyTheMessage("Ten plik już istnieje " +
                                                     "(w danej ścieżce)!");
            }
        }