string[] vals = File.ReadAllText(name_inp_f).Split('\n');
int.TryParse(vals[3], out c4);
Console.WriteLine("введите счет 1 команды");
string inp_data_0 = Console.ReadLine();
string inp_data_2 = Console.ReadLine();
string inp_data_4 = Console.ReadLine();
string inp_data_6 = Console.ReadLine();
Console.WriteLine("введите счет 2 команды");
string inp_data_1 = Console.ReadLine();
string inp_data_3 = Console.ReadLine();
string inp_data_5 = Console.ReadLine();
string inp_data_7 = Console.ReadLine();
write_0.WriteLine(inp_data_0 + " ", inp_data_2 + " ", inp_data_4 + " ", inp_data_6 + " ");
write_0.WriteLine(inp_data_1 + " ", inp_data_3 + " ", inp_data_5 + " ", inp_data_7 + " ");
write_0.Close();
inp_f.Close();
string[] vals = File.ReadAllText(name_inp_f).Split('\n');
int.TryParse(vals[0], out c1);
int.TryParse(vals[1], out c2);
int.TryParse(vals[2], out c3);
int.TryParse(vals[3], out c4);
int.TryParse(vals[4], out c5);
int.TryParse(vals[5], out c6);
int.TryParse(vals[6], out c7);
int.TryParse(vals[7], out c8);
var inp_f = new FileStream(name_f1, FileMode.Open, FileAccess.Read, FileShare.Read);
StreamWriter write_f1 = new StreamWriter(inp_f);
string name_f1 = "input.txt";
string name_f2 = "otput.txt";
FileStream inp_f = new FileStream(name_f1, FileMode.Create);
StreamWriter write_f1 = new StreamWriter(inp_f);
Console.WriteLine("Ввидите входные данные: ");
string inp_data = Console.ReadLine();
write_f1.Write(inp_data);
write_f1.Close();
FileStream out_f = new FileStream(name_f2, FileMode.Create);
try
{
inp_f.Position = 0;
StreamReader reader_f = new StreamReader(inp_f);
string content_f = reader_f.ReadToEnd();
StreamWriter write_f2 = new StreamWriter(out_f);
write_f2.Write(content_f);
reader_f.Close();
write_f2.Close();
}
using (var streamReader = new StreamReader(fileStream, Encoding.UTF8, true, BufferSize))