I have tried that but you can't assign a string as a filename, it gives an error that it has to be a character array. Also when i want to put the content from the .txt file in a string with
"
FileName = SD.open("name.txt");
if (FileName) {
while (FileName.available()) {
filename(FileName.read());
}
"
and i read the string out with "Serial.println(filename);" i get a number instead of the name "arduino1" witch is in de .txt file..
What am i doing wrong?