According to your declaration, my_file_name is a string of char, not a pointer to FILE. While function fscanf requires a pointer to FILE. Therefore you got that kind of error.
If you want it to be a string, use sscanf
instead of fscanf
to extract data. Otherwise, declare a FILE pointer, open a file and read from it.