ShriRam Changed status to publish July 16, 2022
#include<stdio.h> #include<conio.h> void main() { int a,i; char name[30]; FILE *wname; wname=fopen("abcdef.dat","w"); printf("Enter the 5 Name : "); for(i=1;i<=5;i++) { scanf("%s",name); fprintf(wname,"%s\n",name); } getch(); }
ShriRam Changed status to publish July 16, 2022