經安全檢測,此網站為安全網站,請放心前往原始網址!

Java: how to create and write to a file - Stack Overflow

Creating a text file (note that this will overwrite the file if it already exists): PrintWriter writer = new PrintWriter("the-file-name.txt", "UTF-8"); writer.println("The first line"); ...

stackoverflow.com

網址安全性掃描由 google 提供