Cleaning up.
This commit is contained in:
parent
cab23d5ef5
commit
6eb4f8f991
4 changed files with 5 additions and 5 deletions
4
hw3/task4/.gitignore
vendored
4
hw3/task4/.gitignore
vendored
|
@ -1,2 +1,2 @@
|
|||
find_key
|
||||
testing.txt
|
||||
./find_key
|
||||
./output.txt
|
||||
|
|
Binary file not shown.
|
@ -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");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Reference in a new issue