summaryrefslogtreecommitdiff
path: root/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp')
-rw-r--r--CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp
index 8ab56e1..24ae3fa 100644
--- a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp
+++ b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp
@@ -62,6 +62,9 @@
* 5) Update the file related error messages within the code
* to also provide the specific name of the file that is having a
* problem.
+*
+* Done
+*
* 6) Rebuild and execute your program to verify that your messages
* are correct.
* 7) Correct the path names.
@@ -98,9 +101,9 @@ int main()
ifstream inFile;
// Notice how this automatically opens the file
- ofstream outFile("C:\\Users\\Aaron Hill\\Desktop\\Chap_11_Report.txt");
+ ofstream outFile("C:\\Users\\Aaron Hill\\Desktop\\Chap_11_Report.txxt");
- inFile.open("C:\\Users\\Aaron Hill\\Desktop\\Chap11-MyData.txt");
+ inFile.open("C:\\Users\\Aaron Hill\\Desktop\\Chap11-MyData.txxt");
if (inFile.is_open())
{
@@ -115,13 +118,13 @@ int main()
}
else
{
- cout << "Trouble Opening File";
+ cout << "Trouble Opening Output File";
cout << "\n\n\t\t ** About to EXIT NOW! ** ";
}
}
else
{
- cout << "Trouble Opening File";
+ cout << "Trouble Opening Input File";
cout << "\n\n\t\t ** About to EXIT NOW! ** ";
}
return 0;