Hi Guys, Yes, I know I am not suppose to use FEOF to control a while loop but i need a suggestion of how to solve my issue.
In the function, a line of characters are read and picked out one by one. When the line reaches \n the function stops. Comes out to check the while loop for FEOF. There are cases where there are multiple lines this the function runs again (exactly what i want it to do). But when it does reach FEOF in the file itself, the while loop doesnt stop. Any Suggestions?Code:while (!feof(in))
adjust(root, in);