24.01.2015, 23:05
That's because "\n" and '\n' aren't the same. The first one is a string consisting of two character: \ and n with ASCII values 92 and 110 respectively. The second is a single character constant with an ASCII value of 10 (LF, Line Feed). You need to delete those two characters and replace them with a single line feed char.

