Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

File Merger

Hello brothers and sisters i have developed a download manager in java working fine but now i want my download manager to be able to download files in multiple threads and it does so . The problem now is to combine the files so that it just gives the orignal file . Can any body help on this problem i will be thankful .
REQUIRED : FILE MERGER IN JAVA. :D
[359 byte] By [shamshami] at [2007-11-11 8:30:10]
# 1 Re: File Merger
Create a new temp file, then write out the bytes to it from each file part in proper sequence.
Phaelax at 2007-11-11 22:35:17 >
# 2 Re: File Merger
can u explain please i am sick of working on this project man but how to read the bytes from a file simultaneosly please explain
shamshami at 2007-11-11 22:36:17 >
# 3 Re: File Merger
can u explain please i am sick of working on this project man but how to read the bytes from a file simultaneosly please explain

Reading both your files like this:
http://javaalmanac.com/egs/java.io/ReadLinesFromFile.html

and then write them both to one file like this:
http://javaalmanac.com/egs/java.io/WriteToFile.html
prometheuzz at 2007-11-11 22:37:16 >