oneOne line only !!
pathpath and lineline are Strings
import java.nio.file.Files; import java.nio.file.Paths;
Files.write(Paths.get(path), lines.getBytes());
import java.nio.file.Files;
import java.nio.file.Paths;
Files.write(Paths.get(path), lines.getBytes());