New line (\n) in variable
#2

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.
Reply


Messages In This Thread
New line (\n) in variable - by Leon9741 - 24.01.2015, 22:37
Re: New line (\n) in variable - by Vince - 24.01.2015, 23:05
Respuesta: Re: New line (\n) in variable - by Leon9741 - 24.01.2015, 23:18

Forum Jump:


Users browsing this thread: 1 Guest(s)