Chapter 10: Problem 14
In what mode do you open a file if you want to write data to it, but you do not want to erase the file's existing contents? When you write data to such a file, to what part of the file is the data written?
Short Answer
Expert verified
Answer: The 'append' mode, represented as 'a', allows data to be added without erasing existing contents. The data will be written at the end of the file.