Jul 13, 2011, 2:40 AM
Post #1 of 9
How to put the data of two file into the third file in a different fashion
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.
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
Could anyone help me with this?