#include <SD.h>
File file;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
if (!SD.begin())Serial.println("SD card not detected");
else Serial.println("SD card detected");
file = SD.open("harry.txt", FILE_READ);
Serial.print("Total charaters: ");
Serial.println(file.size());
if(file){
Serial.println(message);
delay(2000);
while (file.avalible()){
char data = file.read();
Serial.print(data);
}
Serial.println();
file.close();
}
Serial.println("File read Successfully")
}
void loop() {
// put your main code here, to run repeatedly:
}