Write a program in C# to read a text file and make a copy in another file by changing the lowercase letters to uppercase.
public class ConvertTextFileToUppercase
public static void Main(string args)
string inputFileName = "input.txt";
string outputFileName = "output.txt";
string contents = File.ReadAllText(inputFileName);
contents = contents.ToUpper();
Practice C# anywhere with the free app for Android devices.
Learn C# at your own pace, the exercises are ordered by difficulty.
Own and third party cookies to improve our services. If you go on surfing, we will consider you accepting its use.