You have a file that is not empty. You open a file stream for write, and attach the stream to the file. Then you close the file. What is now in that file?
What will be an ideal response?
The file is now empty.
Opening a file for write truncates the file. In short, it empties the file before writing.
Computer Science & Information Technology
You might also like to view...
While completing a form, a user can move from one content control to another by pressing the ________ key
A) Tab B) Esc C) Ctrl D) Alt
Computer Science & Information Technology
Why is it important to add elements and styles to charts such as titles, legends, and labels?
What will be an ideal response?
Computer Science & Information Technology