Added The write data

I still havent make the read part.... Gonna do it, when i get more info
for now, it will collect data, write it in a text file...
I also need to make a code that will run forever so it collect every 2
hours