|
-
April 15th, 1999, 04:30 AM
#1
HELP AYUDAME! "\n" in a Cfile or edit box???
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: [email protected]
MUCHAS GRACIAS!!!!(=i will be so pleasent, jeje)
-
April 15th, 1999, 04:39 AM
#2
Re: HELP AYUDAME! "\n" in a Cfile or edit box???
Use the CR/LF (carriage return + line feed) characters together: "\r\n"
Dave
-
April 15th, 1999, 04:45 AM
#3
Re: HELP AYUDAME! "\n" in a Cfile or edit box???
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|