From a813fe37f5dcfc8b10a901f1dab6cdcbb9e6cd57 Mon Sep 17 00:00:00 2001 From: jacobdw22 Date: Mon, 28 Nov 2022 14:45:38 -0800 Subject: saved --- CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp index 868a32a..f65b5ed 100644 --- a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp +++ b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp @@ -82,7 +82,8 @@ int main() ifstream inFile; // Notice how this automatically opens the file - ofstream outFile("C:\\TEMP1\\Chap_11_Report.txt"); + ofstream outFile; + outFile.open("C:\\TEMP1\\Chap_11_Report.txt"); inFile.open("C:\\TEMP1\\Chap_11_data.txt"); -- cgit v1.2.3