Hi
I'm learning files in C languagem but I'm with a problem. I always thought that when we do a fprintf to write something into a file (in this case using "a") this something would be written in the debug display :S
I tested with this program but nothing is written in the debug:
Code:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
FILE * xyz;
xyz = fopen("example.txt","a");
fprintf(xyz,"12345\n");
fclose(xyz);
xyz = fopen("example.txt","a");
fprintf(xyz,"67890\n");
fclose(xyz);
system("pause");
return 0;
}
Is there any way or some process to write into a file and to the debug screen at the same time?
I'm really confused :S