Cleaning up.

This commit is contained in:
Alex Huddleston 2018-03-05 23:08:19 -06:00
parent cab23d5ef5
commit 6eb4f8f991
4 changed files with 5 additions and 5 deletions

View file

@ -1,2 +1,2 @@
find_key ./find_key
testing.txt ./output.txt

Binary file not shown.

View file

@ -76,7 +76,7 @@ int main()
// Open the needed files. // Open the needed files.
input = fopen("ciphertext.txt", "rb"); input = fopen("ciphertext.txt", "rb");
output = fopen("testing.txt", "wb"); output = fopen("output.txt", "wb");
// I prefer ifstreams when dealing with files, // I prefer ifstreams when dealing with files,
// but I leave the other two as file pointers // but I leave the other two as file pointers
@ -119,7 +119,7 @@ int main()
// message, if it does, then we guessed the key. // message, if it does, then we guessed the key.
fclose(output); fclose(output);
ifstream tempoutput("testing.txt"); ifstream tempoutput("output.txt");
getline(tempoutput, templine); getline(tempoutput, templine);
@ -138,7 +138,7 @@ int main()
{ {
// We didn't decrypt it, try again, // We didn't decrypt it, try again,
// overwrite whatever was in the file. // overwrite whatever was in the file.
output = fopen("testing.txt", "wb"); output = fopen("output.txt", "wb");
} }
} }

View file