I am trying to create an array with about 100 names. I want the names to be the ones I have selected not randomly generated ones. So each position of the Array will hold a string of a name. Is there an easier way to do this than Array[1] = "name; Array[2] = "name"; ? The way I was thinking was to use a for loop to get the information from a data file or a text file but I have no idea how to do that. What is the easiest way to accomplish this task?
I am trying to create an array with about 100 names. I want the
Share
If you have a file with one name by line: