When should you call the Flush() method?

You create a program that writes a status message to a file every 10 seconds. You need to ensure
that all data is written to the file before the file is closed. When should you call the Flush() method?

You create a program that writes a status message to a file every 10 seconds. You need to ensure
that all data is written to the file before the file is closed. When should you call the Flush() method?

A.
Before writing the entry

B.
When opening the file

C.
Before opening the file

D.
After writing the entry



Leave a Reply 2

Your email address will not be published. Required fields are marked *