returns on windows

I created a tsv file on mac. When i open it on windows, all returns are ****** up. The returns where done with println on the PrintWriter. Is there a way to do this on a mac, and have it correct on windows?

Comments

  • edited October 2013

    windows requires \r\n on the end of lines (carriage return AND line feed). mac (and linux) only uses the linefeed. and i think println will only add the \n so it'll look bad on windows.

    you could manually add a \r to every line, but then that'll look bad on non-windows systems...

  • @koogs, that's \r, not \c (you were close...).

    @clankkill3r
    "When i open it on windows"
    This is unclear. How do you open it?

    My guess is that you used the worst editor on Earth, Notepad, which doesn't know what a single newline is. Use any other not braindead editor (like the excellent Notepad++) , and there is no problem at all.

  • (oops, philho, spotted my mistake and edited post before seeing yours)

  • yeah i used the worst editor on earth :)

Sign In or Register to comment.