I have created a class that requests user input (7 textboxes of individual data)
I need to save that data for later use in a flat file using the StreamWriter Class.
Do I have to create individual instances for each field?
private void btnSaveFile_Click(object sender, EventArgs e)
{
StreamWriter studentInfo = new StreamWriter(txtFirstName.Text);
}
or is there a way I can ask StreamWriter to print all the fields in that class? I tried overloading the method, however apparently that can't be done.