Hello so the code i need to write needs to read a text file and print as many random names as a user tells it to. so i have everything but cant figure out how assign a line of the file a number so i can just come up with random numbers and print the line that corresponds to the integer that was inputted from the keyboard.
the file just has names that look like this:
Alex
Phil
Brandon
Sarah
Heather
...
thanks