0
//------------------------------------------
// you must be looking for something like that :
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Enter A Text");
string txt = Console.ReadLine();
int txtLen = txt.Length;
Console.WriteLine("the length of the value is {0}",txtLen.ToString());
}
}