merge multiple csv files in one master file

priestxandar

Client
Регистрация
28.08.2012
Сообщения
35
Благодарностей
1
Баллы
8
As the title say, i need to find some way how to merge multiple csv files in one master file.

Any suggestions ?


Thanks
 

bigcajones

Client
Регистрация
09.02.2011
Сообщения
1 216
Благодарностей
683
Баллы
113
Get the path to all the files in the directory and put to list. Go through the list one by one and Take Text from the file. Add that variable to a table bound to your output file with {-String.Tab-} as the separator. The only problem is that the header row of each file will be added to the combined file so you will have to regex replace that out of the variable, or fix your file when you are done combining them.

Посмотреть вложение Control.xmlz

In this template I create the output file (.xls) to store the .csv's in with c# code.
 
  • Спасибо
Реакции: Perfecto и priestxandar

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)