Archived
1
0
This repository has been archived on 2026-03-24. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
SomeLab/16/Program.cs
2025-11-15 20:25:57 +08:00

23 lines
591 B
C#

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); }
}
}
}
}