Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

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;
}
 
PREVIOUS NEXT
Tagged: #read #files
ADD COMMENT
Topic
Name
2+4 =