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","r"); printf("5 Names are : \n"); for(i=1;i<=5;i++) { fscanf(wname,"%s",name); printf("%s\n",name); } getch(); }
ShriRam Changed status to publish July 16, 2022