That is why I always use a PrintWriter instead.

java.io.StringWriter sw = new java.io.StringWriter();
java.io.PrintWriter out = new java.io.PrintWriter(sw);

out.println("Hello Sailor!");
out.println("Hello World!");

String result = sw.toString();



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 13, 2001 7:39 AM
To: [EMAIL PROTECTED]
Subject: Re: [ANNOUNCE] Struts Console


I concur that this is off to a nice start and should be useful to many
people.

If you want to tailor the EOL for the particular platform (you may already
know this) you can append
System.getProperties().getProperty("line.separator") to the end of each line
instead of hardcoding '\n' or "\r\n".

On Thu, 13 September 2001, Bill Clinton wrote:

> 
> Hello,
>      It ran fine under Redhat 7.1, other than a bunch of missing font 
> messages.  I personally did not like the way it reformatted my entire 
> struts-config.  Could this be because it is not interpreting unix text 
> file format correctly, or does it do this on windows too?  Also, it put 
> a bunch of ^Ms in my file which is an annoying, but somewhat common 
> occurance when viewing dos/windoze text files in unix.
>      I personally would not have any need for a program like this.  I am 
> more comfortable editing a well commented xml file.  But everbody is 
> different and many people might find this very useful.  It looks like 
> you have done a very nice job so far - keep up the good work!
> 
> Bill
> 
> James Holmes wrote:
> 
> >I have put together a GUI for Struts called Struts
> >Console.  Struts Console is a Java Swing based
> >application for managing Struts configuration files.
> >
> >Struts Console is availbale at:
> >http://www.geocities.com/jholmes612/
> >
> >Just unpack the zip file and view the README for
> >details on running Struts Console.
> >
> >I'd like to get people's feedback and find out what
> >they like/dislike, what they would add/remove or
> >anything else you think about the tool.
> >
> >I'd like to see this tool evolve into "the" struts GUI
> >app and be part of the standard struts distribution.
> >
> >Thanks,
> >
> >James Holmes
> >[EMAIL PROTECTED]
> >
> >__________________________________________________
> >Do You Yahoo!?
> >Get email alerts & NEW webcam video instant messaging with Yahoo!
Messenger
> >http://im.yahoo.com
> >
> >.
> >

--
Steven Valin
[EMAIL PROTECTED]

Reply via email to