The Art Of Life Is To Know When To Be Useless And When To Be Useful - CHUANG TZU
posted 10 years ago
The java.io.FileWriter class can be used for writing characters to a file. For each value to print, convert it to a String, determine how many characters that has, and fill it up with spaces until it's as wide as the column it's in. With Java 5 you could also use the sprintf facility for formatted printing.