DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
convert text file into list
crimefile = open(fileName, 'r') yourResult = [line.split(',') for line in crimefile.readlines()]
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#convert
#text
#file
#list
ADD COMMENT
Topic
COMMENT
Name
8+6 =
Submit