Class 12(C-Program)Display Message in a file C program April 23, 2021 - by Prajwal Rai - Leave a Comment /*Display Message*/ #include<stdio.h> #include<conio.h> main() { char str[30]="Hello World"; FILE *p; p=fopen("a.txt","w"); fprintf(p,"%s",str); fclose(p); }