How to create a list using text file or csv file?

Use the file component to read the file, then convert to a list using the "list from csv table" block.
Because you have the name per line, you will have a list of lists, so you will need to select item with index1 of each item to get the value.

Learn about using lists:

General Tutorials