How a split a file into many based on size?

Consider a text file which has a size of 400 bytes, i need to split up the contents in that 400 bytes file into 100 bytes of separate files.So there should be totally 4 files should be created.

Kindly help on this...

View Answers

June 2, 2011 at 12:45 PM

Use read(Byte[] b) method. Where as, this method will reads b.length() bytes of data from the file.


January 5, 2012 at 2:17 PM

can u pls post the code ?









Related Tutorials/Questions & Answers:
Advertisements