This week's giveaway is in the Cloud/Virtualization forum. We're giving away four copies of Secure Financial Transactions with Ansible, Terraform, and OpenSCAP and have Lucian Maly on-line! See this thread for details.
Hi all in a filesharing program supose i'm a client and i want to download a file from someone what is the type of Streams that i use to be suitable to copy all kinds of files is it DataOutputStream or OutputStreamWriter or FileWriter or PrintWriter and which method should i use ? i've tried DataInputStream and DataOutputStream with the methods readByte() & writeByte() and it works but with the problem that the file that has copied is not opened properly
Or you could check out the java.nio.channels API. Create a FileInput and FileOutput stream on the two files, get the channel for each, and use transferFrom/transferTo or read(ByteBuffer)/write(ByteBuffer).
There many programs used to download files and programs. But I think the most conventional way would be to have your friend copy the file or program onto a CD and you could take a taxi over to his house and pick it up, or have it delivered to your house.
straws are for suckers. tiny ads are for attractive people.
SKIP - a book about connecting industrious people with elderly land owners