Code: Select all
....
File dataFile = SD.open("datalog.txt");
if (dataFile)
{
// read from the file until there's nothing else in it:
while (dataFile.available())
{
Serial.write(dataFile.read());
}
// close the file:
dataFile.close();
}
.....
Code: Select all
.....
while (Serial.available()>0)
{
inChar=Serial.read();
dataString += inChar;
}
.....
where I'm wrong? There is a method for reading record by record the file on SD?
Thanks for your help
Regards
Marco