I added the \ns back in to run a few more times and it hung on "3" again, this time on the 2nd iteration. It would seem there is an issue with the fopen function call. It is because of how quick I'm opening and closing the same file?