I'm writing a program in vb.net where i want to add a newline like "\n" in C within System.Console.WriteLine().
How can i do this?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ankit NandekarPosted May 5, 2011, 7:40 AM
Console.WriteLine("Name:Ankit Nandekar{0}Age:24", Environment.NewLine)
output:
Name:Ankit Nandekar
Age:24
Ankit NandekarPosted May 6, 2011, 2:43 AM
RanPosted May 6, 2011, 2:25 AM
VulpesPosted May 5, 2011, 8:44 AM
CrishPosted May 5, 2011, 8:20 AM
VulpesPosted May 5, 2011, 7:31 AM
Please see this link (http://msdn.microsoft.com/en-us/library/dy7yth1w.aspx) for a list of other predefined constants in VB.