Venkatesh
How a split a file into many based on size?
2 Answer(s)      5 years and 2 months ago
Posted in : Java Beginners

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...

Ads

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 ?










Ads

Advertisement