Banging my head with Java line separator
One of the most unpleasant experiences with computers is having to solve a problem you already fixed when you realize the old solution is no longer working for reasons unknown. The problem this morning was quite silly, actually. One piece of code created a text file. I did not care much about the way newlines were represented but when I sent the file to to a colleague that uses Windows he complain notepad was making a mess out of it. It was clear notepad was doing this because my file, created on a unix system, did not honor Windows end of line convention of CR plus LF characters (0x0d + 0x0a). I have solved that in the past just changing the System property called line.separator. You could do that with System.setProperty("line.separator","\r\n") but apparently not anymore. Of course, no error message or exception is raised, so you are left alone, in the dark, trying to figure out what is wrong and why what worked before does not work now. I could not make m