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

sql - text truncated using perl DBI insert -

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

php - Pass object by reference or value -