Update main.c

error fix in while loop forgot the FILE