Am trying to write some code that will read a simple text file and return what is placed in the text file along with how many characters there are. Reading the file works but am having a problem with the correct number of characters, keeps on saying minus 1. If anyone could help i would be very grateful. Thanks in advance.
FILE * input_file;
int rval, ch;
printf("Please input the file name you wish to open: ");
printf("%d characters in file.\n", EOF);