Bug ??? - CRLF and TextWriter1.WriteLine

wes58

Active Member
Licensed User
Longtime User
I tried to use both TextWriter1.WriteLine and CRLF and I think that they don't work correctly.
As the name says CRLF should be "Carriage Return" and "Line Feed", which in hex are characters 0x0D and 0x0A (or 13 and 10 decimal).
Instead, TextWriter1.WriteLine and CRLF only write character 0x0A, which causes a problem when opening created text file with notepad. The text is not formated correctly and everything is displayed in one line.

Another question: When I write for example: Chr(176), in a created file there are two characters 0xc2 and 0xb0 (0xb0 -> 176 dec). In some editors (notepad is showing ok) it displays like "°" instead of just "°".
 

davide69

Member
Licensed User
Longtime User
Hello Erel,

I need to remove LF when I use TextWriter1.WriteLine, there is any chance?
My device is working with CR only, how to avoid LF get transmitted using serial.outputstream? Any configuation option to manage CR LF get transmitted?

Thanks

Davide
 
Top