Quote (AbDuCt @ Sep 27 2012 01:35am)
how is the .data file formatted?
if there is one integer per line i would use fgets and just realloc the array every iteration of a loop reading the file until EOF.
although using too many reallocs may fragment your memory.
I got this program done thank you guys (yes it was one integer per line)
(btw didnt use realloc or fget)