it is very easy if you know java io package, jdbc and string handling. you canread data from file using inputstream and outputstream. then insert intodatabase using standard sql queries using jdbc package.