   ASSERT(file.open("NISSE.TXT", O_WRITE | O_TRUNC | O_CREAT));
   ASSERT(file.is_open());
   char msg[] = "Nisse badar.\n";
-  ASSERT(file.write(msg, strlen(msg)) == (int) strlen(msg));
+  size = strlen(msg);
+  ASSERT(file.write(msg, strlen(msg)) == size);
   ASSERT(file.close());
   stop = RTC::millis();
-  trace << PSTR("Open/Write/Close file (13 Byte):");
+  trace << PSTR("Open/Write/Close file:");
   trace << stop - start << PSTR(" ms") << endl;
 
   start = RTC::millis();


void loop()
{
  uint32_t start, stop;
  FAT16::File file;

  FAT16::ls(trace, FAT16::LS_DATE | FAT16::LS_SIZE);
  trace << endl;

  start = RTC::millis();
  ASSERT(file.open("TMP.TXT", O_WRITE | O_CREAT));
  for (uint8_t i = 0; i < 4; i++)
    file.write(NULL, 1024);
  ASSERT(file.close());
  stop = RTC::millis();
  trace << PSTR("Open/Write/Close file (4 KByte):");
  trace << stop - start << PSTR(" ms") << endl;
  trace << endl;

  FAT16::ls(trace, FAT16::LS_DATE | FAT16::LS_SIZE);
  trace << endl;

  start = RTC::millis();
  ASSERT(FAT16::rm("TMP.TXT"));
  stop = RTC::millis();
  trace << PSTR("Remove file:") << stop - start << PSTR(" ms") << endl;
  trace << endl;

  FAT16::ls(trace, FAT16::LS_DATE | FAT16::LS_SIZE);
  trace << endl;


  while ((c = file.getchar()) != -1) trace << (char) c; 
  ASSERT(file.close());
  stop = RTC::millis();
  trace << PSTR("Open/Read/Close file:");
  trace << stop - start << PSTR(" ms") << endl;
  trace << endl;

