Hi, I'm using MS VS2010, C#. I am reading through a file in byte format that is made up of both Standard ASCII and Extended ASCII. I want to print out only the Standard ASCII characters.
So, I have the following code that does work, but I'm sure there is a more elegant way to do this. Does anyone have any suggestions?
if (myChars >= (char)48 && myChars <= (char)90)
myString += myChars.ToString();
Like I mentioned, this does work for me, but I'd like to write better code than just having it work.