Board index » kylix » Problem with CR LF and FileWrite
|
Alexander Wendorff
kylix Developer |
|
Alexander Wendorff
kylix Developer |
Problem with CR LF and FileWrite2005-08-25 08:46:21 PM kylix2 Hi, I'm using kylix3 an Suse Linux 8.2. I try to send some diggits with the function filewrite to a serial port. It's neccesary, that the diggit-sequence begins with <cr><lf>. So, I fill a string-variable with the diggits an then I concat the string with the command tmpstr := chr(13)+chr(10)+tmpstr. But when I analyzed the string at the comport, I'll see <13><13><10>. Why is there a duplicate <13>? Kind regards, Alex |
| maeder
kylix Developer |
2005-08-26 12:29:45 AM
Re:Problem with CR LF and FileWrite
"Alexander Wendorff" < XXXX@XXXXX.COM >writes:
QuoteI try to send some diggits with the function filewrite to a serial convert '\n' (ASCII 10) to '\r\n' (ASCII 13,10). \n is the typical end of line mark in C programs and in files on Unices. \r\n is the typical end of line mark on DOS related platforms and in many Internet protocols etc. |
