If names.txt has exactly this type of data (with '[', ']') as mentioned:
["John", "Mike", "Tom", "Sam", "Anthony"]
Then the following code can be used:
names = [name[1:-1] for name in open('names.txt').read()[1:-1].split(', ')]
>>> print(names)
['John', 'Mike', 'Tom', 'Sam', 'Anthony']
Or if names.txt consists of many lines, and each line has one name, you can do the following:
names = [line for line in open('names.txt').readlines()]
>>> ['John', 'Mike', 'Tom', 'Sam', 'Anthony']
Or if it has names separated by comma (or any other symbol), then:
names = open('names.txt').read().split(',') # you can change ',' for any other separator you need
print(names)
>>> ['John', 'Mike', 'Tom', 'Sam', 'Anthony']
Note that some text editors (like Atom) add an empty line when saving the file, so it can produce '\n' character presence in your list.
Also note that in the first case (one line - one name) each line will end with '\n' character.