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

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable