Do the fopen like this
Your file pointer appears to be NULL, so your fopen probably isn't working.Code:if ((filein = fopen("World.txt", "rt")) == NULL) { /* Error occured notify user */ return 1; }
Do the fopen like this
Your file pointer appears to be NULL, so your fopen probably isn't working.Code:if ((filein = fopen("World.txt", "rt")) == NULL) { /* Error occured notify user */ return 1; }