📅  最后修改于: 2022-03-11 14:52:21.693000             🧑  作者: Mango
try {
Files.write(Paths.get("myfile.txt"), "the text".getBytes(), StandardOpenOption.APPEND);
}catch (IOException e) {
//exception handling left as an exercise for the reader
}