using fgetc() function is also an option.
and not to make your programme more dynamic use linked list to store the inputs of the file
stuct some_name{
char file_data;
struct some_name *next;
};