How Can I Append Contents to a File

Below we append contents to a file in C++