Hi,
I am completing an assignment converting decimal to binary, hex & BCD. That part of it went fine and works as intended. We are supposed to send the output to a file. When I
test the program using printf it looks good: nice orderly colums. When I use the format method of a Formatter object and send the output to a file it's a mess. The colums are gone. Even playing with WordWrap does not resolve it. I thought at first I neglected to put in a '\n' but I had not. How do I get the Formatter object to preserve the spacing I painstakingly set up via the printf approach? Is it even possible?
The maddening part is this isn't even a
Java course. It's for my Assembly Language/Computer Hardware Organization class. We were given the option of doing it in Java or C++. My C++ is even rustier than my Java so I thought I was taking the easy way out. I checked the Java tutorial and didn't find much in regard to this.
Thanks in advance