Microsoft
98-372 · Question #176
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()…
Sign in or unlock 98-372 to reveal the answer and full explanation for question #176. The question stem and answer options stay visible for context.
Question
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?
Options
- ABefore opening the file
- BBefore writing the entry
- CAfter writing the entry
- DWhen opening the file
Unlock 98-372 to see the answer
You've previewed enough free 98-372 questions. Unlock 98-372 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.