Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
9
Task/File-input-output/Java/file-input-output-5.java
Normal file
9
Task/File-input-output/Java/file-input-output-5.java
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import java.nio.file.*;
|
||||
public class Copy{
|
||||
public static void main(String[] args) throws Exception{
|
||||
FileSystem fs = FileSystems.getDefault();
|
||||
Path in = fs.getPath("input.txt");
|
||||
Path out = fs.getPath("output.txt");
|
||||
Files.copy(in, out, StandardCopyOption.REPLACE_EXISTING);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue