Encoding.ASCII.GetString

image_pdfimage_print
   
 
using System;
using System.Text;

class StringEncodingApp {
    static void Main(string[] args) {
        byte[] ba = new byte[] { 72, 101, 108, 108, 111 };
        string s = Encoding.ASCII.GetString(ba);
        Console.WriteLine(s);
    }
}

    


This entry was posted in File Stream. Bookmark the permalink.