Assume you have opened and connected stream variables fileIn and fileOut. Assume further that you have finished with input file, but want to read the input file a second time. What is necessary to set the stream state to reread the file from the start?

What will be an ideal response?

To do this requires a call to the close() member function, then to call the open function a second time with the same physical file name.

Computer Science & Information Technology

You might also like to view...

A(n) ___________________ loop will repeat an unlimited number of times.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

A JavaFX Button’s event handler receives a(n) ________, which indicates that the Button was clicked.

a. ButtonEvent b. ObjectEvent c. ControlEvent d. ActionEvent

Computer Science & Information Technology