dcsimg
File handling
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Dnyanesh_Bendre
Posted On:   Monday, July 8, 2002 05:47 AM

I am reading a text file .I want to replace the Strings in the file with other strings.I had used String Tokenazer class to find the strings and replace.
I have stored the final pattern in String which I will be writing to output stream.This does not give me proper formatting of the file,as whole thing is written in one Line.
Can any body tell me how to format the final string??
e.g
class foo
{
"bdsjdk";bdjsdk
"doudjdjk"
}
I want to replace the strings and write the file with changed strings,and with same format.

Re: File handling

Posted By:   Anonymous  
Posted On:   Monday, July 15, 2002 02:06 PM

could be as simple as writing "println" instead of "print" when writing to you file. why don't you throw up your code and see if anyone can find an error for you.

-conor
About | Sitemap | Contact