Explain the difference between the CreateText method and the AppendText method.
What will be an ideal response?
You use the CreateText method to open a file for output and the AppendText method to open it for append. When a file is opened for output, the computer creates a new, empty file to which data can be written. If the file already exists, the computer erases the contents of the file before writing any data to it. When a file is opened for append, on the other hand, new data are written after any existing data in the file. If the file does not exist, the computer creates the file for you. The CreateText and AppendText methods automatically create a StreamWriter object to represent the file in the application.
You might also like to view...
Each storage device on your PC is identified by a unique device ____________________.
Fill in the blank(s) with the appropriate word(s).
A ________ license allows an author to set conditions for the free use and distribution of their work.
A. public domain B. Creative Commons C. private D. digital rights