Question
Write to textfile
Posted on February 19, 2014 at 09:35
Hi
I'm trying to write some values to a textfile but without success. I work with the IAR Workbench. Bellow the code which I found also in the Arm User Guide:#include <stdio.h>
FILE *f; f = fopen (''Test.txt'',''r''); /* Open a file from default drive. */ if (f == NULL) { printf (''File not found!\n''); }
The error is FILE and f undefined Can anybody help me what I'm doing wrong?Regards