c# read char

C#
input[i] = Console.ReadKey().KeyChar;
Source

Also in C#: