I need to add the name of file to my list view which is .log type. I have something like this but it shows only path to that file. My code:
string[] files = Directory.GetFiles(@"C:\...","*.log");
foreach (string file in files)
{
listView1.Items.Add(file);
}
Any thoughts?