C examples for String:char array
Read a Text File Character by Character and displays these contents on the screen
#include <stdio.h> int main(){/* www . j a v a2s .co m*/ int num; FILE *fptr; fptr = fopen("test.txt", "r"); num = fgetc(fptr); while(num != EOF) { putchar(num); num = fgetc(fptr); } fclose(fptr); return(0); }