Skip to content

Instantly share code, notes, and snippets.

@willf
Created July 25, 2011 18:45
Show Gist options
  • Save willf/1104848 to your computer and use it in GitHub Desktop.
Save willf/1104848 to your computer and use it in GitHub Desktop.
Read each line in c# from the console
static void Main(string[] args)
{
string line;
while ((line = Console.ReadLine()) != null)
{
line = line.Trim();
Process(line);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment