I am using BufferedReader to read through a csv file, there could be 100,00 rows or may be half million rows in the csv file. I have following questions:
1. is BufferedReader an efficient way to read the file and process the data 2. how do i stop at each 25,000 row --> do some processing, then come back again further from the BufferedReader. I am not able to mark the BufferedReader properly to read next 25,000 records after i have read first 25,000 records
Break the application up into logical methods for each step. An exmple using pseudo-code:
By breaking this down into seperate methods, it makes it easy to gain the finctionality you want.
I used pseudo-code to do this, stepping back and using some form of analysis to get through a problem helps. This anaylsis could also be done using a Sequence Diagram to determine calls in the system and identifying methods a class needs to perform a function.