Write to a text file

This simple Java program writes output to a plain text file. If the file
exists, this program will overwrite it.