Topic: read from data(txt ,doc , csv) files

i need the code of read data from files and store them into database on ruby on rails.