I have got multiple text files, which i seprated from one text file , now i want to merge them with ,
seprated form but column with the sequence
data1.txt
A man in the park
A man in the ground
A man is running
data2.txt
Yes1
No1
Why not1
data3.txt
Yes2
No2
Why not2
data4.txt
Yes3
No3
Why not3
data5.txt
Yes4
No4
Why not4
How can I merge these data files into a comma separated values (csv) file using c++?
1,A man in the park,Yes1,Yes2,Yes3,Yes4
2,A man in the ground,No1,No2,No3,No4
3,A man is running,Why not1,Why not2,Why not3 , Why not4