/// <summary> /// Click event handler for btnAddFiles which adds files to the directory /// </summary> /// <param name="sender">Object on which event has occured</param> /// <param name="e">Args for the event</param> protected void btnAddFiles_Click(object sender, EventArgs e) { //paths for file to be created string fileRead = @"C:\Test\FileRead"; string fileWrite = @"C:\Test\FileWrite"; //call to the CreateFiles() method which creates the files bool resultFileRead = UtilityFunctions.CreateFiles(fileRead); bool resultFileWrite = UtilityFunctions.CreateFiles(fileWrite); //checking the result if (resultFileRead && resultFileWrite) { //if success Response.Write(Messages.FileCreationSuccess); } else { //if failed Response.Write(Messages.FileCreationFailed); } }