We are about to switch to a new forum software. Until then we have removed the registration on this forum.
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
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 :)