Page 137 - PYTHON-12
P. 137

th
                 When you open a file in reading/writing mode, the file pointer rests at 0  byte.
                 When you open a file in append mode, the file pointer rests at last byte.
               This is illustrated in the practical implementation that follows:






























               Contents of “test.txt”



























               4.13 INTRODUCTION TO CSV

           Computer Science with Python–XII  4.8  through spreadsheets or databases.
               In every span of today’s organizational working environment,
               data sharing is one of the major tasks to be carried out, largely


               A  basic  approach  to  share  data  is  through  the  comma
               separated values (CSV) file.

               CSV is a simple flat file in a human readable format which
               is extensively used to store tabular data, in a spreadsheet or
               database. A CSV file stores tabular data (numbers and text)
               in plain text.
   132   133   134   135   136   137   138   139   140   141   142