/// <summary> /// Click event handler for btnRead which reads from FileRead and writes to FileWrite /// </summary> /// <param name="sender">Object on which event has occured</param> /// <param name="e">Args for the event</param> protected void btnRead_Click(object sender, EventArgs e) { //path to the files string fileRead = @"C:\Test\FileRead"; string fileWrite = @"C:\Test\FileWrite"; //call to CopyContents() method to copy the contents bool result = UtilityFunctions.CopyContents(fileRead, fileWrite); //checking the result received if (result) { //if success Response.Write(Messages.ContentCopySuccess); } else { //if failed Response.Write(Messages.ContentCopyFailed); } }