     int minute = now.minute();
     int second = now.second();
 
-    char buff[580];
+    char buff[500];
     char *header = buff;
     // Create the header using the current time/date data
     sprintf(header,


void dumpFile(){
    debugOut("dumpFile");
    //Serial.flush();
    char mess[25];
    char i = 0;

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

    //debugOut(mess);
    //delay(SERIAL_DELAY);
    File dataFile = SD.open(mess);
    if(dataFile){
        while(dataFile.available()){


void printRootDir(){
    File dir = SD.open("/");
    //File entry;
    dir.rewindDirectory(); // Go back to first file

    debugOut("List files in root directory:");
    while (true) {
        //entry =  dir.openNextFile();
        dir =  dir.openNextFile();
        if (! dir) {
            // no more files
            break;
        }
        Serial.println(dir.name());
        Serial.flush();
        //debugOut(entry.name());
        //Serial.println(entry.name());
        //Serial.print("\t\t");
        //Serial.println(entry.size(), DEC);
        dir.close();
    }
    debugOut("Thats all of them!");
}
