DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
read a file and split the words python
f = open("yourfile.txt", "r") content = f.read() words = content.split() f.close()
PREVIOUS
NEXT
Tagged:
#read
#file
#split
#words
#python
ADD COMMENT
Topic
COMMENT
Name
3+4 =
Submit