I have got a csv file which when launced is integrated with the database(Oracle).That is the contents of csv file get populated into the database and same can be displayed in the application which is a Powerbuilder application.

Here I need to verify the contents of database with the csv file which is available with me.So I plan to copy the contents of database into a text file and then compare both the target file as well as the initial csv file. I feel my approach is correct but can anyone help me to copy the contents of one file into another.

I tried searching this Forum for the similar question but could not get , so please excuse if the same question has been asked before. Your help will be appreciated.