WEB then to SD Card

Good Afternoon,

Ok no luck so far.

  • moves SD.begin(4); to the setup.
  • the code change that fat16lib suggested is already in the cpp file.

On the first iteration it writes to to the SD card.
strcpy_P(prog_buffer, (char*)pgm_read_word(&(string_table[4]))); // UPC file.
upcFile = SD.open(prog_buffer, FILE_WRITE);
prog_buffer equals the file name and upcFile = 1.

After that prog_buffer still equals the file name but upcFile = 0.
I'm perplexed...