Page 1 of 1

Program P1 which calls file F1 which has 100 records

PostPosted: Wed Nov 17, 2010 5:43 pm
by ganeshpande
I have program P1 which calls file F1 which has 100 records
and following structure
001 ..................
002 ..................
003 ..................
...
....
...
098 ....................
099 ...................
100 ....................

Now I want to read these files and write these records in
file F2 in following manner.

001 ...... 051 .....
002 ...... 052 .....
003 ...... 053 .....
.......... .......
.......... .......
.......... .......
048 ........ 098 ......
049 ....... 099 .......
050 ....... 100 ......

Re: Program P1 which calls file F1 which has 100 records

PostPosted: Wed Nov 17, 2010 8:46 pm
by prino
Programs don't call files.

What have you tried so far that didn't work?

Re: Program P1 which calls file F1 which has 100 records

PostPosted: Wed Nov 17, 2010 9:06 pm
by Robert Sample
Terminology is critical in IT, where similar terms may mean very different things. So far, your use of incorrect terminology does not help provide you solutions. Learning to use appropriate terminology should be a very important part of your learning process.

Use an array to hold the first 50 records, then you can easily output the concatenated records.