I have three strings that I need to write into a file without any new lines and have them within fixed width fields. currently im trying to use printwriter's printf but i dont fully understand how to do it. if this isnt enough info please ask and ill do my best to clarify my question.
-
Do you need your newlines simply removed from the strings? And what is "within fixed with fields"?Alexander Pavlov– Alexander Pavlov2012-02-16 19:50:16 +00:00Commented Feb 16, 2012 at 19:50
-
I think he means that it should be space filled if the data cannot take the entire field (space padded) so that the field is always the same lengthAdrian– Adrian2012-02-16 20:01:06 +00:00Commented Feb 16, 2012 at 20:01
Add a comment
|