Create a gist now

Instantly share code, notes, and snippets.

@Kaneta /gist:6582280
Last active Dec 23, 2015

What would you like to do?
import java.io.File;
import java.io.IOException;
import com.google.common.io.Files;
public class FileCopy {
public static void main(String[] args) {
File original = new File("src/original.txt");
File newFile = new File("src/newfile.txt");
try {
Files.copy(original, newFile);
} catch (IOException e) {
e.printStackTrace();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment