DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
how to read from a file into a list in python
f = open(filename, "r") listItems = f.read().splitlines()
PREVIOUS
NEXT
Tagged:
#read
#file
#list
#python
ADD COMMENT
Topic
COMMENT
Name
7+4 =
Submit