Last active
December 23, 2015 04:48
-
-
Save Kaneta/6582280 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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