Click to See Complete Forum and Search --> : HELP AYUDAME! "\n" in a Cfile or edit box???


raul
April 15th, 1999, 04:30 AM
Can somebody help me?? i don't know how i can put a "\n" (new line, return, EOL...) in a CFile, multiline Edit box or a CString object. Alway when i try tu put "\n" ( is the most logic, no??) i get a special caracter like |.
Please, answer me soon as posible to: raul.flores@uni.alcala.es
MUCHAS GRACIAS!!!!(=i will be so pleasent, jeje)

Dave Lorde
April 15th, 1999, 04:39 AM
Use the CR/LF (carriage return + line feed) characters together: "\r\n"

Dave

Franky Braem
April 15th, 1999, 04:45 AM
When you open the file, open it in binary mode. When you open it with the text mode the \r\n is replaced with \n.

EditBox needs a \r\n as a newline.

Make sure that when you create the file that it's opened for binary access.