This program crashes at the end and i have no idea why :( I want it to transform my .txt file into a .bin file it makes the file correctly and everything but it has a fatal crash at the end. Anyone got any clue?
you could try putting a condition in your j for loop. as it now stands, it could over run the allotted character buffer.
also, are you sure of the consistency of the itemDB.txt file? any irregularities in that could cause problems, including containing less than 38 lines.
the scanf family of functions are very error prone.