Wednesday, August 10, 2011

How do I put a carriage return into a byte array in c#?

I can put carriage returns into a byte variable type, but when I start doing the same thing to a byte array it treats it as if I am trying to p it a integer value. I need an ascii code carriage return into a byte array. I've tried using a string with /r/n and converting that into ascii bytes, but instead of treating the /r/n into the return newline it treats them as literals which isn't going to work.

No comments:

Post a Comment