Thanks for ur answer falk, It now works fine.
I was using the icons Open + Write + Close.. before using ur solution.
Actually I was opening only once the file and then saving my data to
that file and then closing it at the end of the program only. Whereas
with ur solution, it seems that the icon adds the data fine to the file
by then closes it just after. I am saving the data every second at the
moment.... is opening and closing the file each time I write the data a
problem in my program?
Thanks a lot for ur help,
Regards,
David