Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to read specific words from a file in python

fo = open("output.txt", "r+")
str = fo.readline()
str = str[7:11]
print("Read String is : ", str)
fo.close()
 
PREVIOUS NEXT
Tagged: #read #specific #words #file #python
ADD COMMENT
Topic
Name
4+6 =