SyntaxFix
Write A Post
Hire A Developer
Questions
Take a look at the Java File API
a quick example:
try (PrintStream out = new PrintStream(new FileOutputStream("filename.txt"))) { out.print(text); }