c# - Byte[] to ASCII -


i received contents of text file returned in binary values:

byte[] buf = new byte[size]; stream = file.inputstream; stream.read(buf, 0, size); 

how can convert ascii?

use:

system.text.encoding.ascii.getstring(buf);


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -