I got a kind of weird question to ask. I need to know how can I break a given file into small small pieces using Java (any file type). Then I can put those peaces into numbe
Read & write streams as raw byte[]. Avoid the text streams and readers.
In your last question your were apparently breaking up the files according to 'line'. To replicate that behavior, simply used a fixed size of byte[] to read. Note carefully the warnings in comments to your last question, to check how many bytes are read. A byte[2^16] will not necessarily be filled in a single read.