LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

appending multiple *.csv files while retaining the original file name in the first column

Solved!
Go to solution

Hi guys it's been awhile.

 

I'm trying to append multiple *.csv files while retaining the original file name in the first column, the actual data set is about 40 files.

 

file a.csv contains:
1, line one in a.csv
2, line two in a.csv

file b.csv contains:
1, line one in b.csv
2, line two in b.csv

output.csv result is this:

I would like this:
a.csv, 1, line one in a.csv
a.csv, 2, line two in a.csv
b.csv, 1, line one in b.csv
b.csv, 2, line two in b.csv

 

Any suggestions to speed up my hobbling attempts would be aprieciated:)

 

Thanks,

 

-SS



0 Kudos
Message 1 of 5
(2,700 Views)
Solution
Accepted by ShotSimon

What you could do is given in the attachment.

 

Started with 2 files :

a.csv

copy of a.csv

Both with data :

1;1.123
2;2.234
3;3.345
Output :
a.csv;1;1.123 a.csv;2;2.234 a.csv;3;3.345 Copy of a.csv;1;1.123 Copy of a.csv;2;2.234 Copy of a.csv;3;3.345

 

 

If you have more questions, just shoot 😉

Kind regards,

- Bjorn -

Have fun using LabVIEW... and if you like my answer, please pay me back in Kudo's 😉
LabVIEW 5.1 - LabVIEW 2012
Message 2 of 5
(2,692 Views)

ABCPrograms,

 

Very nice solution Thank you.

 

-SS



0 Kudos
Message 3 of 5
(2,679 Views)

Was the solution the answer to your question?

 

Kind regards,

 

Bjorn

Kind regards,

- Bjorn -

Have fun using LabVIEW... and if you like my answer, please pay me back in Kudo's 😉
LabVIEW 5.1 - LabVIEW 2012
0 Kudos
Message 4 of 5
(2,677 Views)

Yes.  -SS



0 Kudos
Message 5 of 5
(2,669 Views)