Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have 10 txt files . given below are 3 txt files named as "A.txt" ,"B.txt","c.txt",.likewise we have 10 txt files .

VB
A  B1.asd
1   0.1
2   0.2
3   0.3

A   B2.asd
1   0.7
2   0.1
3   0.4

A   B3.asd
1   0.6
2   0.4
3   0.12


Now I have merged all these files and saved ouput in a new file where the data appears like this :

VB
A   B1.asd
1   0.1
2   0.2
3   0.3
A   B2.asd
1   0.7
2   0.1
3   0.4
A   B3.asd
1   0.6
2   0.4
3   0.12



My question is : I want to import this data to datagridview where my output appears like this : as first field is common to all so we eliminate it .

B1.asd B2.asd B3.asd
0.1 0.7 0.6
0.2 0.1 0.4
0.3 0.4 0.12

anybody know answer/code pls reply
Posted
Updated 23-Jan-14 20:25pm
v2
Comments
Sergey Alexandrovich Kryukov 24-Jan-14 2:26am    
What have you tried so far?
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900