My application is ASP .NET MVC; I am trying to open multiple files from a directory and store the files names in a variable (collection). For example if I have 10 files named (M1, M2, M3 ...), I am using the following to open one file:
string imagefile =
System.Web.HttpContext.Current.Server.MapPath("~/Content/" + "M1");
I know the number of files in that directory. Would appreciate your suggestions, thanks in advance.