From 38d0d70d1a5541e83c7b8c2add993e764b885701 Mon Sep 17 00:00:00 2001 From: JonCr Date: Sat, 3 Dec 2022 23:55:59 -0800 Subject: In progress and trying to figure it out in a panic --- CST116-Ch11-Crombie-data.txt | 9 +++++++++ CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp | 5 +++-- 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 CST116-Ch11-Crombie-data.txt diff --git a/CST116-Ch11-Crombie-data.txt b/CST116-Ch11-Crombie-data.txt new file mode 100644 index 0000000..17cbbb9 --- /dev/null +++ b/CST116-Ch11-Crombie-data.txt @@ -0,0 +1,9 @@ +Troy 12 +Kevin 35 +May 19 +Leo 44 +Lisa 37 +Michael 26 +Brian 51 +Donna 42 +Irene 76 \ No newline at end of file diff --git a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp index 53830da..1ac97e6 100644 --- a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp +++ b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp @@ -83,6 +83,7 @@ int main() // Notice how this automatically opens the file ofstream outFile("C:\\TEMP\\Chap_11_Report.txt"); + //inFile.open("C:\\TEMP\\CST116-Ch11-Crombie-data.txt"); inFile.open("C:\\TEMP\\Chap_11_data.txt"); if (inFile.is_open()) @@ -98,13 +99,13 @@ int main() } else { - cout << "Trouble Opening File"; + cout << "Trouble Opening File: Chap_11_Report.txt"; cout << "\n\n\t\t ** About to EXIT NOW! ** "; } } else { - cout << "Trouble Opening File"; + cout << "Trouble Opening File: CST116-Ch11-Crombie-data.txt"; cout << "\n\n\t\t ** About to EXIT NOW! ** "; } return 0; -- cgit v1.2.3