using System.IO; var text = File.ReadAllText("input.txt"); File.WriteAllText("output.txt", text);