Input from the console using ReadLine() : Console Input Output : Development Class C# Source Code


Custom Search

C# Source Code » Development Class » Console Input Output »

 

Input from the console using ReadLine()









    

/*
C#: The Complete Reference 
by Herbert Schildt 

Publisher: Osborne/McGraw-Hill (March 8, 2002)
ISBN: 0072134852
*/

// Input from the console using ReadLine(). 
 
using System;  
  
public class ReadString { 
  public static void Main() { 
    string str; 
 
    Console.WriteLine("Enter some characters."); 
    str = Console.ReadLine(); 
    Console.WriteLine("You entered: " + str); 
  } 
}


           
       
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Development Class
» Console Input Output