commit bba56cb5e63735e5876b6bda0386c26bf92095d0
parent 960065b2d81de168b000ecf5046e0c40df8db8a2
Author: Minerva_juppiter <94231606+minerva-jupiter@users.noreply.github.com>
Date: Wed, 29 Jun 2022 23:26:31 +0900
Diffstat:
2 files changed, 11 insertions(+), 8 deletions(-)
diff --git a/Encrypt.cs b/Encrypt.cs
@@ -27,17 +27,19 @@ namespace Cypher
string whereKeyFile;
string whereEncryptedFile;
+ /*
//自動テスト
whereDateFile = @"h:\date.txt";
whereEncryptedFile = @"h:\encrypted.txt";
whereKeyFile = @"h:\key.txt";
-
- /*
- whereEncryptedFile = Question("Where will you create encrypted file?", false);
- whereDateFile = Question("Where is the file you want to encrypt?", true);
- whereKeyFile = Question("Where is keyFile?", true);
*/
+ Question question = new Question();
+ whereEncryptedFile = question.Questions("Where will you create encrypted file?", false);
+ whereDateFile = question.Questions("Where is the file you want to encrypt?", true);
+ whereKeyFile = question.Questions("Where is keyFile?", true);
+
+
//順序ファイルの読み込み
StreamReader sr = new StreamReader(whereKeyFile);
diff --git a/SortProgram.cs b/SortProgram.cs
@@ -22,19 +22,20 @@ namespace Cypher
string whereSortedFile;
string howLongDate;
+ /*
//自動テスト
whereEncrypted = @"h:\encrypted.txt";
whereKeyFile = @"h:\key.txt";
whereSortedFile = @"h:\sorted.txt";
howLongDate = "390";
-
- /*
+ */
+
Question question = new Question();
whereEncrypted = question.Questions("Where is encrypted file?",true);
whereKeyFile = question.Questions("Where is KeyFile?",true);
whereSortedFile = question.Questions("Where will you create sorted file?",false);
howLongDate = question.Questions("How Long the date file?",false);
- */
+
int howLongDateInt = int.Parse(howLongDate);
//byteのデータを長さの数だけ用意