点击(此处)折叠或打开
- using System;
- namespace MonoConsole
{
class Program
{ - static void Main(string[] args)
- {
- string line = string.Empty;
- while (true)
- {
- line = Console.ReadLine().Trim();
- if (line == "quit")
- {
- break;
- }
- Console.WriteLine(line);
- }
- }
- }
- }
> mono project.exe | cat
hello world
hello wrold
quit
>