Which of the following is the correct way to close a file stream named outFile?

a. outFile.close();
b. outFile.close;
c. outFile.close("project.txt");
d. close(outFile);

a. outFile.close();

Computer Science & Information Technology

You might also like to view...

Which one of the following statements declares a variable named fox that references an instance of the Animal class?

a. new Animal fox(); b. Animal fox = new Animal(); c. Animal fox; d. Animal new(fox);

Computer Science & Information Technology

When a boolean array object is instantiated, its components are initialized to false.

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

Computer Science & Information Technology