Quote Originally Posted by kzar
Do you really need to allocate variables for each? I don't know how to use the listbox but I would think you would do somthing like this:

Code:
char buffer[100];

while (fgets(buffer,sizeof(buffer),fp) != NULL);
    add_to_list_box(buffer);
Cya
Oye! It works, I didn't know about fgets, reads things one line at a time. Learn something new every day.

Thanks!