Using Read Function 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; }

Comments

Popular posts from this blog

Are Regular VACUUM ANALYZE Still Recommended Under 9.1?

Can Feynman Diagrams Be Used To Represent Any Perturbation Theory?