Search
 
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
Name
3+4 =