Скажите почему не открывается файл. Формат и free работают. Keil. Файл создан и лежит в корневом коталоге.
FILE *f;
fat_init (); //fformat ("M:SD_CARD"); FREEEE = fat_free(); sprintf(counter_str,"%d Byte", FREEEE); LCD_sting_HH(0, 10 , counter_str , GREEN, 0); f = fopen ("123.txt","r"); if (f == NULL) { /* error when opening the file */ LCD_string_HH(0,20 , "Файл не открыт" , GREEN, 0);}
|