This might be a very noob question, but i still got problems with it: How can i copy a file if the source and destination address is given? Copying from line to line doesn't work on some files like pictures. How can i copy then? Thanks!
If you're not using two files, then using the NIO classes here would get somewhat more complex. It's probably easier to stick to java.io classes instead. Rajagopal's post gave good advide for this. To copy files without modification, there's never any reason to use classes with Reader or Writer in their names. You want things that say InputStream and OutputStream. Here is an example that's close to what you want.