Allocation of array for reading strings from a text file

Thanks @RonShepard. I am not familiar with “linked list”. I will search for it.