I've been trying to make a program that asks you the path and searches for any text files present there and outputs it, but it doesn't work
here is my code:
Console.WriteLine("What is the path?");
string path = Console.ReadLine();
string[] files = System.IO.Directory.GetFiles(path,"*.txt");
Console.WriteLine(files);
This code however prints System.String[]
instead of the files name