Creating an arbitrary number of variables
I have the following problem. I've written a program which reads a txt file which contains an arbitrary number of lines with names. What I want is to store these names in variables. To make this more clear lets say that I have a file like that:
I want my program to read through this file and create as many variables as the names in it. That is:
But if I don't know the number of the variables from the beginning (because as I said the namelist length is arbitrary) how can I create that many variables??