sorry for the double post but...

if i substitute this [while(!feof(file))] i get it right... though it has a "(null)" printed at the end...
i still want to know what went wrong in the original code...

thanks in advance