Grasshopper Data Record

Good Day,

I am trying to record the access time and store in gh. By writing into text file using python is possible, however, my script may migrate from one location to another. I am hoping to store the log data in grasshopper. So, the next time i open my script, i am able to backtrack which user and when they access the script.

Data recorded only record the time u access the script, when i close the file, the data is erased?