Program to read a file in C
#include <stdio.h> #include <stdlib.h> int main() { char ch, file_name[25]; FILE *fp; printf(“Enter the name of file you wish to seen”); gets(file_name); fp = fopen(file_name,”r”); // read mode if( fp … Read More
#include <stdio.h> #include <stdlib.h> int main() { char ch, file_name[25]; FILE *fp; printf(“Enter the name of file you wish to seen”); gets(file_name); fp = fopen(file_name,”r”); // read mode if( fp … Read More