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...

The ____________________ option is useful for creating blogs.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Match the case with its description

I. Involved 90 computers in 18 countries A. Involved a $1.4 billion pension deficit II. Prudential Insurance Company B. Employees received 34 months jail sentence for illegally gained company stock III. Cisco Systems C. Incriminating e-mail revealed senior management perpetrated fraud and received inflated bonuses IV. San Diego city employees D. Database administrator copied employee information and attempted to sell it over the Internet

Computer Science & Information Technology

Case 2You plan to create a simple motion tween to be used in a Flash application. Answer the following questions about animation design strategies. As you work with the motion tween, consider using which of the following in order to see multiple frames in the tween at the same time?

A. Easing B. Animation physics C. Onion skinning D. Sequential filenaming

Computer Science & Information Technology

Which one of the following malware types uses built-in propagation mechanisms that exploit system vulnerabilities to spread?

A. Trojan horse B. Worm C. Logic bomb D. Virus

Computer Science & Information Technology