closing the files

This commit is contained in:
Jidong Xiao
2024-01-26 13:51:54 -05:00
parent 390e360b78
commit 24919ca4da

View File

@@ -50,5 +50,9 @@ int main(int argc, char* argv[]){
// print again, but this time print it to a file.
outputFile << line << std::endl;
}
// after using the files, close them before exit the program.
inputFile.close();
outputFile.close();
return 0;
}