Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > java saving String to file

Thread Tools

java saving String to file

jameson737 jameson737 is offline
Junior Member
Join Date: Sep 2006
Posts: 1
Hi, there i has a problem of remaining the format of the string after it was save in a text file: Could anyone please help me. Thanks alot.


has the output of:

Hilton 4445,
high way,
Full name : David
Nickname : vid

FileWriter WriteResult = new FileWriter("file.txt");
PrintWriter ResultOutput = new PrintWriter(WriteResult,true);
//print text to file

But, after saving it in texfile it becomes like this:

Hilton 4445, high way, streetOne Full name : David Nickname : vid

Last edited by jameson737; 09-29-2006 at 03:25 PM..
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Saving a binary file into a string Rune Allnor C++ 3 01-15-2010 02:02 PM
Saving a string to a file jay Java 3 01-30-2006 05:40 AM
EXCEL question saving a file saving the the first column as read only Luis Esteban Valencia ASP .Net 0 01-06-2005 07:02 PM
Saving DataTable to session vs saving a Custom object. John Kandell ASP .Net 4 12-10-2004 05:08 AM
Saving Images While Saving ASP Pages ! Lovely Angel For You ASP General 1 10-03-2003 12:03 AM