How can you append content to an existing file using FileOutputStream?

1
Instantiate FileOutputStream with the filename and set the append flag to true.
2
Use the write() method with an additional parameter for appending.
3
Call the append() method of FileOutputStream after instantiation.
4
You cannot append content using FileOutputStream; a new file is always created.

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation