Problem with saving data from Arduino

Hi peter,

I understand your point and logically it sound right, but I after the changes I dont have any data in the text file. At least, before I had 2.8 sec out of 3.1 sec of data.
Any more ideas you have on how to fix this.

Thanks