Reading characters from the file. : Text File Read : File PYTHON examples


PYTHON examples » File » Text File Read »

 

Reading characters from the file.





print "nReading characters from the file."
text_file = open("read_it.txt""r")
print text_file.read(1)
print text_file.read(5)
text_file.close()

           
       



Leave a Comment / Note


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


PYTHON examples

 Navioo File
» Text File Read