Go4Expert (http://www.go4expert.com/)
-   Java (http://www.go4expert.com/forums/java/)
-   -   Split Flat file using Java (http://www.go4expert.com/forums/split-flat-file-using-java-t28640/)

pkurlawala 30Jun2012 03:59

Split Flat file using Java
Hi Folks,
I am fairly new to java and need some help.
I have a flat file(.txt) with 5 columns and lets say 9750 rows which are pipe delimited. I need to split this file into separate files each of 2000 rows (5 files). Can someone please help me in getting the java code for this.

All times are GMT +5.5. The time now is 13:12.