Tivadar Tivadar - 1 year ago 152
C# Question

c# - How to read char from the console and write them?

Sorry, I've just started programming C# , and i would like to know what's the easiest way to read a charachter or charachters s from the console and store them as a value, so that later I can write to the Console.

Thank you!

Answer Source

That would be:

string input = Console.ReadLine();
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download