i have a list box. when i am pressing ok button on listbox the data is written in the file. but the problem is when another item is selected, the previous item is replace in the file.

is there any method to append data in file.

i am using RFs, RFile, RFileWriteStream
and to write data i use
RFileWriteStream writer;
writer<<buf;