Hi Rob,
Thanks a lot for your reply. As per your below reply, I have completed
1) Code to access the file contents
1.a) Code to read the contents line by line
2) Maintain a counter for the number of lines read
Now I need to write the contents that I am reading from csv to a hashmap and then from map to a new csv for every 20 set of records. Please see my code below for your reference.