Q:

How to print the word from a file in phyton

i tried using the .strip() method which give me the line
f = open("myFile.txt")#this open myfile
for i in range(500): # print 500 character 
    line = f.readline().strip() 
    print(line) 

my expected result is 
"faowijfaoijfaoiwjfioawjfafawjfaoiwjfawofjafw" 

A:

You can do this.
with open("myFile.txt") as f:
    chars_100 = f.read(100)
    print (chars_100)

