public static void copyFile(File inF, File outF) throws IOException {
        // TODO Auto-generated method stub
        //System.out.println("Copying");
        @SuppressWarnings("resource")
        FileChannel inChannel = new FileInputStream(inF).getChannel();
        @SuppressWarnings("resource")
        FileChannel outChannel = new FileOutputStream(outF).getChannel();
        try {
            inChannel.transferTo(0, inChannel.size(), outChannel);
        } catch (IOException e) {
            Misc.ErrorMessage();
            throw e;
        } finally {
            if (inChannel != null)
                inChannel.close();
            if (outChannel != null)
                outChannel.close();
        }
    }