
mail4deveshg
Novice
Jul 13, 2011, 2:40 AM
Post #1 of 9
(3586 views)
|
How to put the data of two file into the third file in a different fashion
|
Can't Post
|
|
Hi All, Problem Statement: I have two files and they contain the comma separated values. I have to read these files and put selected values into the third file. for example: I have to put 1234 and 363 from A.txt & B.txt into the third file C.txt. Row should match in this case, such as first row of A.txt and first row of B.txt. and so on. A.txt 1234,652,2726,373 2526,363,3536,353 B.txt 363,4747,5757 464,4748,3639 What I have done: I have already read these files and put it into an array. But I am not able to print the values in the above fashion .e.g. [1234, 363]. In the C.txt file I have to put the value like this 1234,363 2526,464 Could anyone help me with this? Thanks, Devesh
|