Read & Split

What could be used to read a file from the SD card into a string, and split the string among a character, and iterate over the splits?

Any solution you can find online for doing this in c++ in general would probably work.

If you only care about looking at individual characters, the simplest thing is probably to use fgetc; see this page for more info.

If you want something a bit more robust, Iā€™d suggest using an ifstream.

1 Like