How do I add a new line in a string
Posted on 2007-12-03
I have a series of strings that I am adding together to create a new string.
string firstname = "firstname"
string lastname = "lastname"
string address = "address"
I want it in a single string with the address on a new line from the first name last name so that the new string if displayed woul look like
How do I do this?
string combineadd = firstname + " " + lastname
I tried adding "\n" but that doesnt work..what is needed to add the address string to the combined string as a new line.