How To Join More Than Two .csv file?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • arunsan3
    New Member
    • Apr 2010
    • 4

    How To Join More Than Two .csv file?

    Hello friends,

    I want to join more then two .csv fileas single .csv file please give some suggestions.


    Thank You.
  • Monomachus
    Recognized Expert New Member
    • Apr 2008
    • 127

    #2
    Originally posted by arunsan3
    Hello friends,

    I want to join more then two .csv fileas single .csv file please give some suggestions.


    Thank You.
    Explain how do you want to do it ? Do they have exactly the same structure and only data from one csv to another differ?

    Comment

    • arunsan3
      New Member
      • Apr 2010
      • 4

      #3
      Originally posted by Monomachus
      Explain how do you want to do it ? Do they have exactly the same structure and only data from one csv to another differ?
      Hi Monomachus,
      Actually i have five .csv files with same format but different values so i want to join all five csv to one csv file....

      Comment

      • ThatThatGuy
        Recognized Expert Contributor
        • Jul 2009
        • 453

        #4
        Originally posted by arunsan3
        Hi Monomachus,
        Actually i have five .csv files with same format but different values so i want to join all five csv to one csv file....
        So what's the big deal ... load files one by one .. from may be a file stream...

        append the text retrieved from all of the CSV files to a string

        Note: Do add a NewLine (Environment.Ne wLine) at the end of each string retrieved from file...

        Save it to a new file....

        Comment

        • Monomachus
          Recognized Expert New Member
          • Apr 2008
          • 127

          #5
          Originally posted by arunsan3
          Hi Monomachus,
          Actually i have five .csv files with same format but different values so i want to join all five csv to one csv file....
          Hi,
          Please checkout this post of mine Code4Food #6: How to join multiple CSV files with the same structure ? and download the source code to see different CSV files.

          Comment

          Working...