Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Store Output Stream into String

843838Apr 25 2006 — edited May 7 2006
Hello

I want to store my out put stream in to string so that i can use it latter.

out.println("Nilesh patel");
out.println("nileshpatel7048@yahoo.com");
out.println("Ahmedabad");

it is "Nilesh patel nileshpatel7048@yahoo.com Ahmedabad" but i want to store into string like


String tmp = out.toString();

it is return the hash code of out object how can i store this value in String variable?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 4 2006
Added on Apr 25 2006
6 comments
307 views