Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
18
Task/Input-loop/C-sharp/input-loop.cs
Normal file
18
Task/Input-loop/C-sharp/input-loop.cs
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
using System;
|
||||
using System.IO;
|
||||
|
||||
class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
// For stdin, you could use
|
||||
// new StreamReader(Console.OpenStandardInput(), Console.InputEncoding)
|
||||
|
||||
using (var b = new StreamReader("file.txt"))
|
||||
{
|
||||
string line;
|
||||
while ((line = b.ReadLine()) != null)
|
||||
Console.WriteLine(line);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue