Hello I have been writing a function in c that reads data from a file of this format:
the_dragon!
*I_will_eat_you!
*66*34*
the first line is the name of a enemy
the second is what is says to you when your near it
the third health points and the last is the level
the star is to tell my function when to read the next
thing
but when I run the function it just goes into a infinite loop on the second while loop dose anyone know why?
also the print statements are just for testing