there is some of my input file. Also, Hammer, when I try to implement your code, I get the following error:

warning C4047: 'initializing' : 'char *' differs in levels of indirection from 'char (*)[39]'

And I don't know what that means, if I remove the & sign, the error goes away but I still can't run the program.

P.S. Thanks for the help guys