Results 1 to 3 of 3

Thread: Append to CSV file

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2009
    Posts
    313

    Append to CSV file

    Hello,

    When started my app connects to Access 07 DB and checks if TableA has more than 1000 records.
    If so,it exports them to a CSV file and deletes them from the table.
    After some time,TableA will again reach 1000+ record,and I will again need to export them.
    But,I do not want to create a new CSV file,but rather append to existing one.

    Any directions?

    Thank you!

  2. #2
    Learning .Net danasegarane's Avatar
    Join Date
    Aug 2004
    Location
    VBForums
    Posts
    5,853

    Re: Append to CSV file

    Please mark you thread resolved using the Thread Tools as shown

  3. #3
    PowerPoster stanav's Avatar
    Join Date
    Jul 2006
    Location
    Providence, RI - USA
    Posts
    9,290

    Re: Append to CSV file

    A csv file is just a text file. And when wrting to a text file, you can specify whether to overwrite or append to it by using the appropriate overload constructor of the streamwriter class.
    Let us have faith that right makes might, and in that faith, let us, to the end, dare to do our duty as we understand it.
    - Abraham Lincoln -

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width