Creating file on SD Card October 16, 2009 03:20AM | Registered: 15 years ago Posts: 14 |
Re: Creating file on SD Card October 16, 2009 03:26AM | Admin Registered: 16 years ago Posts: 5,132 |
Re: Creating file on SD Card October 16, 2009 03:33AM | Registered: 15 years ago Posts: 14 |
Re: Creating file on SD Card October 16, 2009 03:41AM | Registered: 15 years ago Posts: 552 |
Re: Creating file on SD Card October 16, 2009 07:17AM | Registered: 15 years ago Posts: 56 |
You hit the nail on the head there.Quote
mdbrim
i JUST starting learning about working with files and stuff on the SD card so i'm not that knowledgeable on external files, but i had a similar problem and what fixed it for me was this line:
fatInitDefault();
Re: Creating file on SD Card October 16, 2009 09:33PM | Admin Registered: 16 years ago Posts: 5,132 |
... int main(int argc, char **argv) { FILE * file = 0; ... fatInitDefault(); file = fopen("sd:/Test.txt", "wb"); if(!file) { printf("fopen Error!!"); fclose(file); return false; } fprintf(file, "This is a test"); fclose(file); //Put a pause here so you can view the output on your tv screen //SDCard_DeInit(); Just let the loader take care of this return 0; }Maybe this will work for you.
Re: Creating file on SD Card October 17, 2009 01:45AM | Registered: 15 years ago Posts: 14 |
Re: Creating file on SD Card October 17, 2009 01:49AM | Admin Registered: 16 years ago Posts: 5,132 |
Re: Creating file on SD Card October 19, 2009 04:30PM | Registered: 15 years ago Posts: 686 |
Re: Creating file on SD Card October 19, 2009 09:10PM | Admin Registered: 16 years ago Posts: 5,132 |