Hi guys,
Can anyone help me with this? i need to read line by line from txt file using microC mmc library.
The txt file is on my sd card, i'm using pic18f2580 to do this.
My problem is that i don't know how to use "Mmc_Fat_Open" function.
i tried to open the file "FILE.TXT" like this, but it seems that FILE_READ mode is not reconized and i think that fhandle is not corectly declared.
errors: "Invalid expresion"
"; expected, but 'short' found files.h "
ps: my card is working properly, i can create file,create directories...etc.
Can anyone help me with this? i need to read line by line from txt file using microC mmc library.
The txt file is on my sd card, i'm using pic18f2580 to do this.
My problem is that i don't know how to use "Mmc_Fat_Open" function.
i tried to open the file "FILE.TXT" like this, but it seems that FILE_READ mode is not reconized and i think that fhandle is not corectly declared.
errors: "Invalid expresion"
"; expected, but 'short' found files.h "
Rich (BB code):
short fhandle;
fhandle = Mmc_Fat_Open("FILE.TXT", FILE_READ, 0x01);