From 2e7082ea7f537a4386c9602e7cf4e6f0513a7d6f Mon Sep 17 00:00:00 2001 From: Wyatt Date: Tue, 8 Nov 2022 19:39:53 -0800 Subject: done --- CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp | 6 +++--- Chapter_11_data_2.txt | 4 +++- output.txt | 14 ++++++++++++++ 3 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 output.txt diff --git a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp index 6c9df83..aa8d436 100644 --- a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp +++ b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp @@ -81,7 +81,7 @@ int main() ifstream inFile; // Notice how this automatically opens the file - ofstream outFile("C:\\Users\\wythe\\source\\repos\\cst116-ch11-debugging-johnson\\Chapter_11_data_2.txt"); + ofstream outFile("C:\\Users\\wythe\\source\\repos\\cst116-ch11-debugging-johnson\\output.txt"); inFile.open("C:\\Users\\wythe\\source\\repos\\cst116-ch11-debugging-johnson\\Chapter_11_data_2.txt"); @@ -98,13 +98,13 @@ int main() } else { - cout << "Trouble Opening File"; + cout << "Trouble Opening File, Out File."; cout << "\n\n\t\t ** About to EXIT NOW! ** "; } } else { - cout << "Trouble Opening File"; + cout << "Trouble Opening File, Input File."; cout << "\n\n\t\t ** About to EXIT NOW! ** "; } return 0; diff --git a/Chapter_11_data_2.txt b/Chapter_11_data_2.txt index aa68093..4a29ac8 100644 --- a/Chapter_11_data_2.txt +++ b/Chapter_11_data_2.txt @@ -3,4 +3,6 @@ Thomas 21 Jimboy 9 Allen 26 JOE 42 -Allen_2 24 +Allens 24 +jlkajklfda 2 +adsfa 1 diff --git a/output.txt b/output.txt new file mode 100644 index 0000000..dc73c0b --- /dev/null +++ b/output.txt @@ -0,0 +1,14 @@ + Here is the Output File +Wyatt 19 +Thomas 21 +Jimboy 9 +Allen 26 +JOE 42 +Allens 24 +jlkajklfda 2 +adsfa 1 + -858993460 + + + ** Total Records: 8 ** + The End -- cgit v1.2.3