Page 1 of 1

Transfer records from two files to third file..

Posted: Wed May 30, 2012 10:55 am
by paruls
I was asked to make a program with following input :

We have three files File1 file2 and file3 , file 1 and file2 have two records,-name and roll number

few records of file1 and file2 are same.

write a program to transfer the data

of file1 and file2 to file3 ,without duplicate.

Posted: Wed May 30, 2012 12:10 pm
by NicC
Good! Go ahead and do it. You are supposed to be a programmer otherwise you would not have been asked. We can do it for you but to do your work for you you will have to pay us - we have to live as well, you know. Of course you could be half way there by now if you had not spent a lot of time posting useless questions. Now, go away and do your 2 file match.

Posted: Wed May 30, 2012 11:55 pm
by DikDude
If you get stuck, post what you have tried and where you need help.

As mentioned, we will help, but will not do the work for you.

You need to create more complete "rules" for you to work from. What should happen when there are duplicate keys - which could occur in either or both files or between the files? If you know that one of the files will never contain duplicate keys, it makes the task easier.