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? Explain.

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...

Reuse of ICT components / code between separate projects leads to an insecure product.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

To reduce the heat from a(n) ________, a cooling stand or heat-absorbing mat can be used to avoid burns

Fill in the blank(s) with correct word

Computer Science & Information Technology

YouTube claims more than ________ hours of video watched each month

A) 4 billion B) 400,000 C) 40 million D) 400 million

Computer Science & Information Technology

Which of the following is true of interorganizational information systems?

a. It speeds up the flow of material and information. b. It increases the effort of processing a transaction. c. It increases the cost of processing a transaction. d. It reduces the flow of payments while concentrating on the flow of material and information.

Computer Science & Information Technology