Thanks for your answer Ulf, neither do I.
i try your code and nothing happen!
I'm not understand why the "\n" doesn´t works.
Ok i'll give you more info. i'm trying to generate a plain file and send it as response from an action this is how im try to do that:
the getLayout method returns the string that will be the report.
and the getIs method returns the info as bytes for response to the client (FYI Struts 2 framework).
if i display the response in a browser it works fine.
thanks for your help
P.d this is the right forum right?
Joined: Sep 14, 2009
Oh ok all right!
i change the order of append((char) 10).append((char) 13) to append((char) 13).append((char) 10) and works fine!
thank you Dittmer!
Maneesh Godbole wrote:Whats wrong with line.separator?
Because the value of the property is platform specific. If you want to guarantee that the generated file will always contain lines that are delimited by the \r\n character sequence the line.separator property will trip you up on certain platforms.
Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.