andagent:
void setup(){
String fileData;
File dataFile = SD.open("settings.txt", FILE_READ);
while (dataFile.available()){
fileData = fileData + dataFile.read();}
Serial.print(fileData);
}
void loop(){
}
- You need to call SD.begin().
- Check that dataFile successfully opens.
- Print a fixed piece of text (eg. "The data: ") before the fileData so you are sure you can see something happening.