/// <summary> /// Click event handler for btnDetailsDirNFile which shows details about newly created Directory and files /// </summary> /// <param name="sender">Object on which event has occured</param> /// <param name="e">Args for the event</param> protected void btnDetailsDirNFile_Click(object sender, EventArgs e) { //call to the DetailsOfDir() method to get attributes of directory List <string> resultDir = UtilityFunctions.DetailsOfDir(); //call to the DetailsOfFile() method to get attributes of the file i.e. FileRead List <string> resultFileRead = UtilityFunctions.DetailsOfFile(@"C:\Test\FileRead"); //call to the DetailsOfFile() method to get attributes of the file i.e. FileWrite List <string> resultFileWrite = UtilityFunctions.DetailsOfFile(@"C:\Test\FileWrite"); //displaying the attributes of the directory Response.Write("<h2>Attributes of Test</h2>"); foreach (string item in resultDir) { Response.Write(item + "<br />"); } //displaying the attributes of the file i.e. FileRead Response.Write("<h2>Attributes of FileRead</h2>"); foreach (string item in resultFileRead) { Response.Write(item + "<br />"); } //displaying the attributes of the file i.e. FileWrite Response.Write("<h2>Attributes of FileWrite</h2>"); foreach (string item in resultFileWrite) { Response.Write(item + "<br />"); } }