111
This commit is contained in:
22
16/Program.cs
Normal file
22
16/Program.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
namespace _16
|
||||
{
|
||||
internal class Program
|
||||
{
|
||||
private const string FILE_NAME = @"c:\temp\TestFile.txt";
|
||||
static void Main(string[] args)
|
||||
{
|
||||
using (StreamReader sr = new StreamReader(FILE_NAME))
|
||||
{
|
||||
try
|
||||
{
|
||||
String line;
|
||||
while ((line = sr.ReadLine()) != null)
|
||||
{
|
||||
Console.WriteLine(line);
|
||||
}
|
||||
}
|
||||
catch (Exception e) { Console.WriteLine(e.Message); }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user