Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python read text file

# where f is the file alias
with open(r"path	ofile.txt", encoding='UTF8') as f:
    contents = f.read()
    print(contents)
Source by www.pythontutorial.net #
 
PREVIOUS NEXT
Tagged: #python #read #text #file
ADD COMMENT
Topic
Name
4+6 =