DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
9+9 =
Submit