Which method can I use to write some output to a file without modifying the format of it?
The following is the contents (as generated by the System.out.println() method) I would like to write:
=== Confusion Matrix ===
a b <-- classified as
47 2 | a = 1
28 0 | b = 0
When I use the write method on a BufferedWriter object, the entire text gets printed as one line. The output was generated by the weka tool's eval.toMatrixString() method.
Thanks in advance!