A.
PrintWriter out = new PrintWriter(new FileWriter("test.txt"));
out.println("Hello World!");
out.close();
B.
BufferedWriter bw = new BufferedWriter(new FileWriter("test.txt"));
bw.write("Hello World!\n");
bw.close();
C.
DataOutputStream dos = new DataOutputStream(new FileOutputStream("
test.txt"));
dos.writeChars("Hello World!\n");
dos.close();
Which one or ones above will write a line of plain text Hello World! into a
tex