string dir = @"C:\aaa"; string fn = Directory.GetFiles(dir, "*.txt")[0]; string txt = File.ReadAllText(fn); this.richTextBox1.Text = txt;