Avatar of zhshqzyc
zhshqzyc

asked on 

Combine multiple files

Hi, I have many file s to be combined. Ex,
File 1
ID  h1 h2 h3
a   1  5  7
b   3  3  5
c   0  4  8

Open in new window

File 2
ID h4 h5 h6
a  2  4  9
b  3  6  1
f  4  1  5

Open in new window

Expected files
ID  h1  h2  h3  h4 h5  h6
a   1   5   7   2   4   9 
b   3   3   5   3   6   1
c   0   4   8 
f               4   1   5

Open in new window

C#

Avatar of undefined
Last Comment
zhshqzyc
Avatar of zhshqzyc
zhshqzyc

ASKER

There is a similar solution at here
How can I apply the priciple?

Thanks for help.
Avatar of AndyAinscow
AndyAinscow
Flag of Switzerland image

What is wrong with the comment you accepted as solution in your other post?  If it doesn't work then request that it be reopened.
Avatar of zhshqzyc
zhshqzyc

ASKER

I am sorry, I can't follow you. I don't understand your comment. It is a different question.
ASKER CERTIFIED SOLUTION
Avatar of Todd Gerbert
Todd Gerbert
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of zhshqzyc
zhshqzyc

ASKER

Okay. Thanks for advice. A little modification. If ID is in the second column, how to modify the code?
h1 ID  h2  h3
1   a   5   7
3   b   3   5
0   c   4   8 

Open in new window

SOLUTION
Avatar of AndyAinscow
AndyAinscow
Flag of Switzerland image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of zhshqzyc
zhshqzyc

ASKER

Thanks you. I will try it by myself.
C#
C#

C# is an object-oriented programming language created in conjunction with Microsoft’s .NET framework. Compilation is usually done into the Microsoft Intermediate Language (MSIL), which is then JIT-compiled to native code (and cached) during execution in the Common Language Runtime (CLR).

98K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo