Hi,
i'm not new in programming (PHP is my best friend) but new in programming Arduino ;-(
The following function (reading out a textfile on a sd card) gives me the Output "Test#0/1#0/2#0/3#0/4"
String finalText="";
char filename[16] = {'\0'}; //16 characters in the filename (or however long you want to make it)
myFile = SD.open("1.txt");
while (myFile.available()) {
finalText+=(char)myFile.read();
}
myFile.close();
Serial.println(finalText);
}
But how can i get
Test
0/1
0/2
0/3
0/4
separated?
in PHP i would do
Test=explode("#", finalText);
This would return an array containing the values i need.
Please help ;-(
Best regards
Daniel