Hi friends,
I have a requrement to read from multiple directories.could some one help me.
I was using the following code to read files from single directory,but dont have any idea to read from 2 or more directories,one after the other.
DirectoryInfo di = new DirectoryInfo("c:/directory1");
FileInfo[] rgFiles = di.GetFiles("*.aspx");
foreach(FileInfo fi in rgFiles)
{
Response.Write("<br><a href=" + fi.Name + ">" + fi.Name + "</a>");
}
Thank you very much
Supra
...
Go to the complete details ...