How to split a text file in java