for example you have a:
string test;
void ExampleWindow::on_clicked(){
ofstream myfile;
string test;
myfile.open ("/home/ws14/Desktop/trunk/minisip/minisip/share/test.txt");
mydialfile << test;
mydialfile.close();
}
how can I just add or insert a value on the file(test.txt). not just overwrite the file(test.txt) when the function(on_clicked) is being called.
All I need is if the function(on_clicked) is being called. The value of test is must add/insert(not ovewrite it) on the file(test.txt).
please help me.... thank you!