Okay, So what I want to do is read a file on an SD card and then print the text (or at least the first 16 characters of text) to my LCD Screen.
Currently when I run it it displays a series of numbers which tends to be somewhat annoying. I want it to print the exact text from the file.
Below is my code (two attempts at it) IF anyone knows what I'm suppose to do that would help greatly.
thanks
if (file) {
while(file.available()){
lcd.print(file.read());
}
file.close();
}
if (file) {
int y;
int temp;
char string[16];
for(y = 0; y < 17; y++ ){
string[y] = file.read();
lcd.print(string[y]);
}
file.close();
}
Oh and just to let you know, when I clear the file (via my computer) and put in just the letter "a" I get out 97 on the LCD. in short It is giving me the Decimal ASCII value of the charecters.
Actually guess what I got it.; I needed to use the readString() from the stream library. Sorry for all the trouble, I guess i didn't work on it hard enough before asking.
Thanks anyways