add to text file without wiping out what's there

Hi all, I'm making a little journal program that simply takes a date and entry and stores it in a text file. Each time I make an entry it copies over the last one. How do I concatentate to the text that's already there? Thanks for any help.
std::ofstream file("myfile.txt", std::ios::app); // I believe
FILE*output=fopen("output.txt","a");
Topic archived. No new replies allowed.