diff --git a/hw3/task4/.gitignore b/hw3/task4/.gitignore index df0afd2..ec3e36f 100644 --- a/hw3/task4/.gitignore +++ b/hw3/task4/.gitignore @@ -1,2 +1,2 @@ -find_key -testing.txt +./find_key +./output.txt diff --git a/hw3/task4/find_key b/hw3/task4/find_key deleted file mode 100755 index 6951e48..0000000 Binary files a/hw3/task4/find_key and /dev/null differ diff --git a/hw3/task4/find_key.cpp b/hw3/task4/find_key.cpp index eb9a393..f550592 100644 --- a/hw3/task4/find_key.cpp +++ b/hw3/task4/find_key.cpp @@ -76,7 +76,7 @@ int main() // Open the needed files. input = fopen("ciphertext.txt", "rb"); - output = fopen("testing.txt", "wb"); + output = fopen("output.txt", "wb"); // I prefer ifstreams when dealing with files, // but I leave the other two as file pointers @@ -119,7 +119,7 @@ int main() // message, if it does, then we guessed the key. fclose(output); - ifstream tempoutput("testing.txt"); + ifstream tempoutput("output.txt"); getline(tempoutput, templine); @@ -138,7 +138,7 @@ int main() { // We didn't decrypt it, try again, // overwrite whatever was in the file. - output = fopen("testing.txt", "wb"); + output = fopen("output.txt", "wb"); } } diff --git a/hw3/task4/testing.txt b/hw3/task4/testing.txt deleted file mode 100644 index e69de29..0000000