I Think its v simple...however I explain it for u..
I am reading an HTML file ........I will read data from this HTML file in a string variable and then I want to write it back to a text file.....When I write the data in text file using PrintStream, It writes all data in one line ...i.e. like this <html> <head> <title> ..............................................</head></html>
But I want that it should be written like it was in its source HTML file i.e.
In addition to the link already provided at response #1:
[How To Get Good Answers To Your Questions|http://www.tek-tips.com/viewthread.cfm?qid=473997]
Of course, if you don't really want help, don't bother to read them.
Ah well. Three good links and you can't take the trouble to read up on how to ask a good question.
Apart from the SMSese in the earlier post and the profusion of periods in the last, your question is not only not good, it is not answerable as you haven't posted any relevant details, only a problem description.
And slanging someone doesn't increase your chances of getting help here. If you must troll, at least try to be original and add some entertainment value. The tired old cliches you posted are just boring.
Perchance, the OP is referring to the lack of carriage returns in his outputted data, and querying where they have absconded to? An analysis of his posts to date reveals that he has read the contents of a File into a String variable, and wants to write the (presumably modified) String back to a file (uncertain as to whether this is the same file or a different one) In the process of outputting to said file, carriage returns previously contained in the original input file are not present in the output. I would hazard a guess that the OP does not want said carriage returns in the String to disappear.
Is my analysis of the situation correct?
An example of the code that you have written to date would be of extreme usefulness to us in aiding you in your noble quest.
Without such a resource, I must rely on my intuition instead.
Possible places that the carriage returns are being "dropped"
1 - On reading in. Are you discarding carriage returns while building up your variable?
2 - On manipulating. Are you processing this line by line, or reading it all into one large variable?
3 - On output - are you using "print" or "println" in the output?
I look forward to further correspondence with you sir