title: Why are blank lines being added in CSV file when running python script multiple times?
body: <p>I am currently trying to build a python 3 script that will take a csv file, read it, and then copy the rows and add them to the end of a file. This script is going to run daily as the data dump from the application will run daily. </p>
  
  <p>I have the code "working" to get the file and copy it and it does work on each run, but it is adding several blank lines to the end of the file each time. so for instance the first time i run it, it is on lines 1-101, but the next time it might be lines 9000-9101.</p>
  
  <pre><code>newest = r'C:\Users\me\downloads\Test2.csv'
  with open(r'C:\Users\me\downloads\out.csv', 'a', newline='') as repository:
      fileWriter = csv.writer(repository, delimiter=',')
      with open(newest, 'r', newline='') as newData:
          fileReader = csv.reader(newData, delimiter=',')
          next(fileReader)
          for row in fileReader:
              fileWriter.writerow(row)
  
  
  print("Copy Complete")
  </code></pre>
  
  <p>I would like for it to not have the blank lines between it. as it may cause issues with the app I am trying to use to view the data.</p>