Answers for "read from text file in c"

C
12

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;
}
Posted by: Guest on April-30-2020
0

read from text file in c

name_of_file.txt
Posted by: Guest on September-23-2021
0

read from text file in c

name_of_file.txt
Posted by: Guest on September-23-2021

Code answers related to "C"

Browse Popular Code Answers by Language