private void button6_Click(object sender, EventArgs e)
{
string[] filePaths = Directory.GetFiles(@"c:\MyDir\");
}
And I have a RichTextBox:
private void richTextBox4_TextChanged(object sender, EventArgs e)
{
}
How can I return / output the data from the method into the RichTextBox?
Once you get the filenames, you can use Enumerable.Aggregate to turn them into a string and set that string as the text for the Rich Text Box: