#include #include int main() { char c; int i; int count=0; FILE*fptr; fptr=fopen("datafile.txt","r"); // allows us to interact with this file if(fptr==NULL) { fprintf(stdout,"Error opening file!\n"); exit(1); } while((c=fgetc(fptr))!=EOF) // allows us to call information from the file and prints it out for us { fprintf(stdout,"%c",c); } fclose(fptr); return(0); }