Hi, It's me again with another silly question:)
I was wondering if there was a way using ofstream to not erase the contents of the file it is writing to and simply write at the end.
Thanks!
P.S. I'm using windows XP and Dev C++

ofstream myfile("example.txt", std::ios::app);

Hope that helps :P
app stands for append btw

Chris

Thanks

Your Welcome,
Go ahead and mark this as solved.

Chris

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.