Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to get the contents of a txt file in python

path= #path here
with open(path) as file
	contents = file.read()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #contents #txt #file #python
ADD COMMENT
Topic
Name
2+1 =