The whole reason the code is only executing one iteration of the while loop is because you are breaking from the loop after it executes once. Remove both of your "break;" statements and it will be fine.
The bracket directly under fgets() and the corresponding bracket are not needed as it isn't a conditional statement.
I recommend you use the flags "rt" for the second argument of fopen().
Why are you using parse()?
__________________
[ Paid Requests ] DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT