okay i get it but what is the best way to go about opening and closing the file. obviously not in the loop like that. i set a serial menu to manually open and close the file and i got the data perfectly but i cant decide the easiest way to go about it yet