C# read file release code example Example: how to read a text file C# string[] text = System.IO.File.ReadAllLines(@"C:\users\username\filepath\file.txt");