Hi
How can I read data from a file included in the project. I am able to open as in that i get a valid file pointer with value 8433992 but when I do fread I get all zeros. I am using the CCS v4.2. Its a C6455 emulator.
Thank you
Anish
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi
How can I read data from a file included in the project. I am able to open as in that i get a valid file pointer with value 8433992 but when I do fread I get all zeros. I am using the CCS v4.2. Its a C6455 emulator.
Thank you
Anish
I realised a mistake with my malloc on line 84 and 85, fixed that thought still not helping for fread on line 93
Hi,
Quick comment: can you try to open your file in binary mode (rb)?
Check:
http://www.cplusplus.com/reference/clibrary/cstdio/fopen/
Hope this helps,
Rafael