keep record of sensor

Hello (again and again) I want to say that it is a very nice forum - very helpful and very nice people here. As you can see I'm new so I have many questions.

my question is: I have a sensor that working and do refresh so I can see it's status "live" now I want to keep record of the status (like log file....) , but also keep seeing the current status something like this refresh number : i sensor is Open/close (this part I all ready have )

history close (according to the refresh number-- i+12) close(i+34) . . . . . . .

is it possible to do?

Thanks again,

Is this in any way related to this thread?

http://arduino.cc/forum/index.php/topic,103606

I think so, so I will lock this thread.