111
This commit is contained in:
11
16/16.csproj
Normal file
11
16/16.csproj
Normal file
@@ -0,0 +1,11 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<RootNamespace>_16</RootNamespace>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
25
16/16.sln
Normal file
25
16/16.sln
Normal file
@@ -0,0 +1,25 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.14.36623.8 d17.14
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "16", "16.csproj", "{A5B25E25-EF1D-47F6-AB55-E0AC5C40E712}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{A5B25E25-EF1D-47F6-AB55-E0AC5C40E712}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{A5B25E25-EF1D-47F6-AB55-E0AC5C40E712}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{A5B25E25-EF1D-47F6-AB55-E0AC5C40E712}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{A5B25E25-EF1D-47F6-AB55-E0AC5C40E712}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {F7A0EDA2-542E-4CE2-91F6-575C0D8277BC}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
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