Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

read from text file and append in list

with open('names.txt', 'r') as f:
    myNames = [line.strip() for line in f]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #read #text #file #append #list
ADD COMMENT
Topic
Name
9+9 =