File Adapter Help

Hi,
I have a scenario where i have to read records from files in a directory and insert into database. The fields in a record is separated by comma and every line holds a records. I have created a integration component which polls a directory ,reads the records from file and creates a event for each record which is subscribed by db adapter and inserted into db as the documents arrive.
But is there any mechanism where i can put all records in a file and sent as one document .

regards
johnson

Either the Poll or the Read option allows you to send all the data in a single chunk. You could then add an operation to parse the records and insert them into a struct array. The struct array can then be passed to the DB adapter.