i have a list of names in a file but i dont know how many like
bob
joe
john
and i need them in different variables so my first idea was to use getline to put them into an array of pointers. but it just made the variables full of junk characters. any ideas on how i could do this