Look in your Oracle documentation for SQL*Loader. It is a utility designed to do just what you are looking for. It is very flexible.