Home / Questions / Can we open an existing file for writing? If not, why?
Explanatory Question

Can we open an existing file for writing? If not, why?

👁 1 Views
📘 Detailed Answer
🕒 Easy to Read
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.

Answer with Explanation

Yes; however, by default, the output streams will overwrite existing contents unless the "append" boolean is set to true in the constructor.