Ralphzehunter Posted March 1, 2005 Posted March 1, 2005 This is probably a really simple question, but what do "/r" and "/n" togethor ("/r/n") signify in C#? If you know what they mean, do you know what the equivalent of that string is in vb.net? I am actually a vb.net programmer, and trying to learn how to use sockets. As there aren't exactly many tutorials in vb.net, I decided to look up tutorials in C#. I can translate it all, except for this one piece. So could you help me? Quote
coldfusion244 Posted March 1, 2005 Posted March 1, 2005 (edited) This is probably a really simple question, but what do "/r" and "/n" togethor ("/r/n") signify in C#? If you know what they mean, do you know what the equivalent of that string is in vb.net? I am actually a vb.net programmer, and trying to learn how to use sockets. As there aren't exactly many tutorials in vb.net, I decided to look up tutorials in C#. I can translate it all, except for this one piece. So could you help me? The equivalent in VB.NET is VbCrLf which is a carriage return line feed. The /r is a carriage return and the /n is a line feed I believe, though not sure... Edited March 1, 2005 by coldfusion244 Quote -Sean
HJB417 Posted March 1, 2005 Posted March 1, 2005 "/r/n" will be interpreted as 4 bytes "\r\n" will be interpreted as 2 bytes Quote
Ralphzehunter Posted March 1, 2005 Author Posted March 1, 2005 Ok, thanks! I will try that out. Thanks for replying so quickly, also! Quote
HJB417 Posted March 1, 2005 Posted March 1, 2005 C# Frequently Asked Questions -- What character escape sequences are available? Quote
Ralphzehunter Posted March 1, 2005 Author Posted March 1, 2005 That's great! If there was a rating system here, I would give both of you a ++! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.