learning java FileWriter
import java.io.FileWriter; import java.io.IOException; public class FileWriterTest { public static void main(String[] args) { try { var fw = new FileWriter("pop.txt"); { fw.write("11111\r\n"); fw.write("11111\r\n"); fw.write("11111\r\n"); fw.write("11111\r\n"); fw.write("11111\r\n"); } fw.close(); } catch (IOException e) { e.printStackTrace(); } } }