how to read data from one file in c code example
Example: read files in c
#include<stdio.h>
int main(){
FILE *in=fopen("name_of_file.txt","r");
char c;
while((c=fgetc(in))!=EOF)
putchar(c);
fclose(in);
return 0;
}
#include<stdio.h>
int main(){
FILE *in=fopen("name_of_file.txt","r");
char c;
while((c=fgetc(in))!=EOF)
putchar(c);
fclose(in);
return 0;
}