Connect with one of the following accounts


Please wait while we redirect...

Views: 410 Ask New Question

I want to copy and paste a file from one location to another location in Java, Is there any one liner solution available?

On By

1 Answer

Files.copy(Paths.get("/from/location/foo.txt"), Paths.get("/to/location/foo.txt"));
On By

Answer This Question

Top Tutorials

Top Questions

Top Articles

Top Blogs

Top News