Page 82 - PYTHON-12
P. 82

size_to_read=10


               f_contents=f.read(size_to_read)

               while len(f_contents)>0:

                   print(f_contents)


                   print(f.tell())

                   f_contents=f.read(size_to_read)





































               Program 13:  Write a Program to read data from data file in append mode and use
               writeLines function utility in python.

               Solution:
   77   78   79   80   81   82   83   84   85   86   87