I am reading in a file, and I am trying to take the first character from that file, and assign to to a variable: currentChar
I am getting the following error message:
Incompatible types when assigning to type
char
from typeFILE {aka struct _IO_FILE}
char inputFile[50] = "hello.txt";
FILE * inFile = fopen(inputFile, "r");
char currentChar;
currentChar = inFile[0];
fclose(inFile);