 |
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 |
 |