SD card cannot be opened twice?

Alright, I have this code that is just supposed to write a few lines to the SD card per loop. The problem being, that the SD card for some reason has error when I try to open a file twice (after closing it). Here's my code, please help.

Stockbridge_InvenTeam:
Alright, I have this code that is just supposed to write a few lines to the SD card per loop. The problem being, that the SD card for some reason has error when I try to open a file twice (after closing it). Here's my code, please help.

//******** Libraries ***********#include <SparkFun_Qwiic_Relay.h>#include <U - Pastebin.com

Post your code using code tags if you expect help.
There is a sticky at the top of this forum explaining how to use this forum.

.