using System;
using System.IO;
namespace FileLowerCaseToUpperCase
{
class Program
{
static void Main()
{
Console.Write("Enter name file: ");
string fileName = Console.ReadLine();
if (File.Exists(fileName))
{
StreamReader fileRw = File.OpenText(fileName);
StreamWriter fileWr = File.CreateText(fileName + ".dat");
string line;
do
{
line = fileRw.ReadLine();
if (line != null)
fileWr.WriteLine(line.ToUpper());
}
while (line != null);
fileRw.Close();
fileWr.Close();
}
}
}
}