Chapter 6: Problem 2
Suppose you are continuing to write the program discussed in the previous exercise and you want your program to take its input from the file stuff1. dat and send its output to the file stuff2. dat. What statements do you need to place in your program in order to connect the stream fin to the file stuff1.dat and to connect the stream fout to the file stuff2.dat? Be sure to include checks to make sure that the openings were successful.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.