@shaun_haney I think for that error I was accessing an array out of bounds. I was passing in the path specified passed by the command line by I used argv[2] when I really meant the second argument(argv[1]).
I’m going to pick it up again this weekend but my next problem is I used strok() incorrectly because I didn’t know you passed in NULL when you are trying to read the next token. I’m definitely getting all the possible errors out of the way so my code will be perfect later :).
Thank you for the help!
@shaun_haney but now that I think a little bit more, that makes sense. Fopen probably returned garbage because it wasn’t getting a valid path and then fgets was accessing some place it couldn’t maybe?