Matt Gerrans
Posts: 1153
Nickname: matt
Registered: Feb, 2002
|
|
Re: writing to a file
|
Posted: Nov 14, 2002 9:31 AM
|
|
Okay, sounds like you want to write to a fix-width text file. On the other hand, your example looks a bit like JSP. Anyway, if you do want to write lines that are all the same length and have different elements of information at fixed positions, then that would probably be easy enough to do by building a list of Strings (or StringBuffers, more likely) that are formatted as you like and then writing these to the text file.
By the way, there is a difference between whitespace, which is an unspecified number (and or/mixture) of spaces, tabs or newlines, versus just spaces. I think you want to use spaces, not whitespace.
|
|