Hi Gerdescm,
I dont know which platform ur using.
in linux and other RTOS :- we can use message-ques for sending and receiving the messages.
ur problem: see have a buffer( file for storing the messages), before writing into buffer make sure u ask the question whether :
1. to append to the existing file,
2. to clear the earlier contents.
!!Sorry!! if i have not given the solution....
Leave a comment: