     return; 
   }
   Serial.println("card initialized.");
+  getNewFileName();
 }
 
 void loop() {

}

/*
Filename MUST be <=8 characters (not including the file extension) or the
file will not be created
*/
bool sdWrite(String data) {
  File dataFile = SD.open("kai.txt", FILE_WRITE);
  // if the file is available, write to it:
  if (dataFile) {
    dataFile.println(data);

#include <SD.h>
#include <SPI.h>

// This must be less than 8 characters (9 bytes)
// Extra byte for being such a good programmer
const int fileNameSize = 10;
char strFileName[fileNameSize];

void setup() {
  
