I am testing to make sure that my file read and my conversion to uppercase is working properly, but when I print the array, the first letter in the array does not show up in the output. Here's the function in question:
int processFile(){
int i;
i = 0;
if (!(fp = fopen("congress.txt", "r"))) {
printf("congress.txt could not be opened for input.");
exit(1);
}
while (!feof(fp)){
fscanf(fp, "%c", &origFile[i]);
i++;
}
for (i = 0; i <= SIZE; i++){
if (origFile[i] >= 'a' && origFile[i] <= 'z') upperFile[i] = origFile[i] -= 32;
}
for(i = 0; i <= SIZE; i++){
printf("%c",upperFile[i]);
}
}