H
Hooyoo
I read the content from a file encoded with UTF8 like this:
byte[] data = binaryReader.ReadBytes(file.Length);
And next step, I want to transform data to ASCII format, How can I do
this?
You know, Using Encoding.UTF8.GetString(data) can get a ASCII string,
but I need a byte[].
I hope you get my point. Any suggestion will be appreciated.
byte[] data = binaryReader.ReadBytes(file.Length);
And next step, I want to transform data to ASCII format, How can I do
this?
You know, Using Encoding.UTF8.GetString(data) can get a ASCII string,
but I need a byte[].
I hope you get my point. Any suggestion will be appreciated.