i saw something like 8 'malloc' calls, and still no 'free' calls. are you reading what im saying? fix your memory leaks.
if this is true, then the only reason is that youre reading the input file incorrectly. i havent read all of your code again so i dont really remember it, but say your input file is this:
then in your program, for every read you do, print out what value it was, surrounded by quotes. surrounding it by quotes makes it obvious as to the "boundaries" of the value. if you dont have quotes (or whatever delimiter) then you may not notice a leading/trailing space/newline or other characters you dont expect. output after reading each value would be something like:Originally Posted by input.txti see you have some output, but i can assume you arent doing this (printing out the values read from the file). because if you were, you would have also given us the contents of the file you were reading, so we can also verify it.Code:line #1 from file: 'abc'
again, this is assuming your code is correct, as you say, and that its just a problem with reading values from file.