Hi
i could really use some help as this is the final part of my project and is causing the most issue, i have a bit of code which receives an output from a shell command and stores it into a string. however i would like to store it in an array with each file holding its own position.
c.runShellCommand("ls /mnt/sda1 | tr '\n' '\n'");
while(c.available() > 0) {
char b = c.read(); //gets one byte from serial buffer
str += b; //makes the string readString
delay(5); //slow looping to allow buffer to fill with next character
}
Serial.println(str);
This code displays all the files in my sd card however they are in a string and want to put it into an array
can anyone help me with this
thank you