 
     // Create the new filename including the system state
     if(LOAD_ON_FLAG == TRUE){
-    sprintf(filename, "%08lu.ON\0", unix%100000000);
+    sprintf(filename, "%08lu.ON", unix%100000000);
     }else{
-    sprintf(filename, "%08lu.OFF\0", unix%100000000);
+    sprintf(filename, "%08lu.OFF", unix%100000000);
     }
 
     // Make sure any open files are closed

    // The voltages are read inside this function
    static int voltages[4] = {0, 0, 0, 0}; // Initiallize the array of values
    debugOut("readVoltage");
    debugOut(filename);

    for(int i=0; i<NUM_SOURCES; i++){
        voltages[i] =  analogRead(VOLT_PIN[i]) * VOLT_MULTI[i];


void dumpFile(){
    debugOut("dumpFile");
    Serial.println("poopy butt holes"); // Helps make it work for some reason
    Serial.flush();

    char mess[17];
    int i = 0;

    //delay(SERIAL_DELAY);
    while(Serial.available()){
        mess[i] = Serial.read();
        i++;
        if(i>=15) break;
    }
    mess[i] = '\0'; // NULL terminate the string

    //debugOut(mess);
    //Serial.println(mess);
    //Serial.flush();
    //delay(SERIAL_DELAY);
    if(!SD.exists(mess)){
        Serial.println("mess Doesn't exist");
        Serial.flush();
        return;
    }
    File dataFile = SD.open(mess);
    if(dataFile){
        while(dataFile.available()){
