I tried to write data to the SD card with the following code, but it wouldn’t show up when I read it back:
c = open(“test.txt”, “x”)
c.close()
f = open(“test.txt”, “w”)
f.write(“Hello World”)
f.close()
I can’t get it to work in C++ either.
I tried to write data to the SD card with the following code, but it wouldn’t show up when I read it back:
c = open(“test.txt”, “x”)
c.close()
f = open(“test.txt”, “w”)
f.write(“Hello World”)
f.close()
I can’t get it to work in C++ either.
Is the SD card correctly formatted as fat32 ?
also, a suggestion, you may want to change your username, it’s not very forum friendly