File file = new File("path/to/file.txt");
String content = Files.readString(file.toPath());
String content = "This is the content to be written";
Files.write(file.toPath(), content.getBytes());
File dest = new File("path/to/destination/file.txt");
Files.move(file.toPath(), dest.toPath());
File dest = new File("path/to/destination/file.txt");
Files.copy(file.toPath(), dest.toPath());
Configs.setBufferSize(4096);
Configs.setCharset("UTF-8");
Configs.setForceLocking(true);
Configs.setLockTimeout(5000);