title: Java library to split text into smaller files
body: <p>I am looking for a java library that allows me to specify max size or max number of lines in output files, and then splits a large xml/text file into smaller files.</p>
  
  <p>I saw that there is a 2 year old question on SO for the same, however the answers there were for specific cloud platforms....I just want a library for use in java desktop apps.</p>