I am trying to write inputs from different text boxes into one string. I have written the following code to create the array:
private void btnSave_Click(object sender, EventArgs e)
{
contents[0] = txtName.Text;
contents[1] = txtSurname.Text;
contents[2] = dtpDOB.Text;
contents[3] = lblGenUsername.Text;
contents[4] = lblPassword.Text;
}
I want the final output to be saved onto a notepad in the following format when the data is received from the inputs:
Tim Forest 25-03-1999 u12345678 password