Combining first two rec as one rec in third file.

I am having file1 and file2, and result should be as follows in file3
file1 file2 file3
1 11 111
2 12 212
3 13 313
4 14 414
5 15 515
............................................
..........................................
............................................
9 19 919
10 20 1020

Questions by mannurusrinivasulareddy   answers by mannurusrinivasulareddy

Showing Answers 1 - 1 of 1 Answers

Here you need to go for a counter variable assume(ws-count)
read FILE-1
count the length of that record and store it in ws-count
move the values from FILE-1 to FILE-3(1:) (make use of reference modification)
read FILE-2
move the values from FILE-2 to FILE-3(ws-count:)
then the resultant will be as you desired
-----------------------
If you have any queries post me

Regards
Siva

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions