I am wondering what is the easiest (and simplest) way to write a text file in Java. Please be simple, because I am a beginner :D
I searched the web and found this co
With Java 7 and up, a one liner using Files:
String text = "Text to save to file"; Files.write(Paths.get("./fileName.txt"), text.getBytes());