Posted By:
Stephen_McConnell
Posted On:
Thursday, September 25, 2003 05:43 AM
I would use java.lang.StringBuffer to build the formatted string. Then use the java.io.File to get a handle to the file; and then use java.io.FileWriter to write the string out to your specific file.
You would loop through formatting and then writing your String to the file... When you are finished, close the FileWriter and exit...
Check out the JavaDocs (found on the Sun web site www.javasoft.com) for specifics on how to use those Classes.
If you have any more problems, the tutorials found on the Java Soft site also have specific code snippets to do about what you want... Any more problems, post what you have done so far (put code inbetween a
set of tags) and we'll help.
Stephen McConnell