How do I a buffer (char array) containing new line character to SD card using SdFat?
I tried:
File myFile = SD.open("test.txt", FILE_WRITE)
myFile.write(buffer, BUFLEN)
but I get this instead:
0000 0000 0000 0000 0000 0000 0000 3337
3837 3838 3937 3035 2c20 2020 2031 2c20
2020 3531 0a33 3738 3738 3839 3730 352c
2020 2020 322c 2020 2035 310a 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
If I use the normal method, then it seems that SdFat stop printing at the newline character:
myFile.print(buffer);
Note: the buffer containing data samples in fixed width csv format
3787889751, 1, 49
3787889752, 10, 49
3787889753, 1, 49