I'm trying to read a text file, 2k of dimension, form sd card, in ESDHC mode.
This is a part of my code:
void Schermata(char* percorso){
MQX_FILE_PTR fp;
unsigned char LOGO[2049];
fp=fopen(percorso,"r");
fscanf (fp, "%s", LOGO);
...
...
fclose(fp);
but in LOGO I find only the first 256 chars of the file.
Where is the mistake?
Many thanks and best regards,
Corrado