Why does Java not have a file copy method? This seems like such an obvious thing to have, and it saves people from writing things like this example.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The Java API is missing more than just file copying. You might be interested in checking out the Apache Commons libraries. For example, the IO library’s FileUtils provides file copying methods.