Absent text window in fopen

Hi 

I am new to programming so please explain simple. 

I have written the following code and it runs as expected with the exception that no text window appears with the string "Hello World" how do I solve this issue? 

#include <stdio.h>


int main()

{
char i;
FILE *fin;
fin = fopen("first.txt", "w");
fprintf(fin,"Hello World!");
fclose(fin);
}
0

请先登录再写评论。