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.

Can't read file. IAR+MSP430F5438A



voltages=x_new*factor;

int volt;

FILE *ptr_file;
ptr_file =fopen("output.txt", "w");

for (volt=1; volt<=10; volt++)
fprintf(ptr_file,"%f\n", voltages);
fclose(ptr_file);

here i need to store my voltage values into a file. but when i compiling it is showing that FILE and *ptr_file is undefined. 

is it possible to store data using IAR compiler..?? 

**Attention** This is a public forum