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.

CCS/CODECOMPOSER: How to dump data from my C code into files ?

Part Number: CODECOMPOSER


Tool/software: Code Composer Studio

Hi,

I am using Code Composer Studio.

I need to dump data from C code into files.

I am trying to use the traditional

FILE* fp;

fp - fopen("File_name", "mode"); .... and so on

I am getting a compilation errors in limes of code -

FILE* forward_dump, *reverse_dump;
forward_dump = fopen("forward_dump.txt", "w+");
reverse_dump = fopen("reverse_dump.txt", "w+");

The errors are below -

"../Lab1_cpu01.c", line 82: error #20: identifier "FILE" is undefined
"../Lab1_cpu01.c", line 82: error #20: identifier "forward_dump" is undefined
"../Lab1_cpu01.c", line 82: error #20: identifier "reverse_dump" is undefined

Looks like the 2nd and 3rd error will go once 1st goes.

Is there a different keyword for FILE ?

Please help.

Thanks and best regards

Bhawandeep Singh