The reason it is not writing as you expected, is because the WriteLine method you are trying to use does not exist.
http://msdn2.microsoft.com/en-us/lib...writeline.aspx
You might want to try something like the following:
StudentSW.Write(TxtInputFirstName.Text + ",")
StudentSW.Write(TxtInputLastName.Text + ",")
StudentSW.Write(TxtInputDOB.Value + ",")
StudentSW.Write(TxtInputHouseNo.Text + ",")
StudentSW.WriteLine(TxtInputAddressL1.Text)
Or, if you really wanted to put the whole thing in one statement, you would have to use one of writelines overload methods using a formatted string.
StudentSW.WriteLine("{1},{2},{3},{4},{5}", TxtInputFirstName.Text, TxtInputLastName.Text, TxtInputDOB.Value, TxtInputHouseNo.Text, TxtInputAddressL1.Text)
Check out here for how to format Strings:
http://www.builderau.com.au/architec...9177160,00.htm