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
You can use FileUtils from Apache Commons:
import org.apache.commons.io.FileUtils; final File file = new File("test.txt"); FileUtils.writeStringToFile(file, "your content", StandardCharsets.UTF_8);