With Java 7 and up, a one liner using Files: String text = "Text to save to file"; Files.write(Paths.get("./fileName.txt"), text.
確定! 回上一頁