To Examples
ToUpper Example, source code file Program.cs
using System; using System.IO; namespace ToUpper { class Program { public static void Main() { string line; StreamReader sr = new StreamReader( "../../../../cinderella.txt"); StreamWriter sw = new StreamWriter("upper.txt"); while (sr.Peek() != -1) { line = sr.ReadLine(); sw.WriteLine(line.ToUpper()); } } } }