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++ - Is it possible to compile a VST on linux? -

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

php cli reading files and how to fix it? -