A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
9
Task/File-IO/Java/file-io-5.java
Normal file
9
Task/File-IO/Java/file-io-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