What file mode is used to open an existing file, and empty the file once opened so that the file is zero bytes in size?

A. Append
B. Empty
C. Truncate
D. Destroy

Answer: C

Computer Science & Information Technology

You might also like to view...

One method of changing the size of a window is to drag the window borders.

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

Computer Science & Information Technology

To know whether the I/O operation succeeded, you use the function ________.

A. stream.clear() B. stream.bad() C. stream.fail() D. stream.good() E. stream.eof()

Computer Science & Information Technology