/* http://www.binefa.net To implement a program to read "trial.txt" */ #include #include void main(){ FILE *f; char frase[100],p; clrscr(); if((f=fopen("trial.txt","r")) == NULL) printf("\nI can't read the file\n"); else{ while((fscanf(f,"%s",&frase))!=EOF){ p = fgetc(f); printf("%s%c",frase,p); } fclose(f); } getch(); }