This is a part of my program which reads data from file of SD card and Display that on LCD screen.
File dataFile = SD.open("1165.txt");
if (dataFile) {
Serial.println("File Opened");
lcd.clear();
delay( 5 ); //LCD-specific M
lcd.setCursor( 0,0 );
while (dataFile.available()) {
Serial.write(dataaFile.read());
lcd.write(dataaFile.read());
lcd.print(dataaFile.read());
}
dataFile.close();
} else {
// if the file didn't open, print an error:
Serial.println("error");
}
When I look at the Serial Monitor It prints the contents of that File but
nun of these commands prints what is printed in the serial monitor,
lcd.write(dataaFile.read());
lcd.print(dataaFile.read());