I’m doing cs50x and on week 5’s problem set I keep getting this error message ‘error: incompatible pointer types passing ‘FILE *’ (aka ‘struct _IO_FILE *’) to parameter of type ‘const char *’ [-Werror,-Wincompatible-pointer-types]
while (scanf(file, "%s", word) != EOF)’ when implementing the load function and I can’t quite understand what am I doing wrong… Can someone help me please?

>Solution :
I guess you need to replace scanf by fscanf in your load function. Btw, CS50 is a great course. I completed it about a month ago.