File readline() : File Read : File PYTHON examples


PYTHON examples » File » File Read »

 

File readline()


File readline()

f = open(r'somefile.txt')
for i in range(3):
         print str(i': ' + f.readline(),

f.close()
           
       



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON examples

 Navioo File
» File Read