R
rosty
i'm trying to get the list of files in the current directory, however it
appears that GetFiles returns only the first file.
the msdn says that it "Returns a file list from the current directory."
what am i doing wrong?
many TIA
static void Main(string[] args)
{
try
{
DirectoryInfo dir = new DirectoryInfo(".");
Console.WriteLine("File list :{0}",dir.GetFiles("*.*"));
// Console.WriteLine("File list: {0}",dir.GetFiles());
}
catch(Exception e)
{
Console.WriteLine("The process failed: {0}", e.ToString());
}
}
appears that GetFiles returns only the first file.
the msdn says that it "Returns a file list from the current directory."
what am i doing wrong?
many TIA
static void Main(string[] args)
{
try
{
DirectoryInfo dir = new DirectoryInfo(".");
Console.WriteLine("File list :{0}",dir.GetFiles("*.*"));
// Console.WriteLine("File list: {0}",dir.GetFiles());
}
catch(Exception e)
{
Console.WriteLine("The process failed: {0}", e.ToString());
}
}