stringwriter

  • Thread starter Thread starter zoneal
  • Start date Start date
Z

zoneal

anyone know how to insert a multiple line of string into
stringwriter.write where it will show like this

name : test

test1

id: 2

this is the format....



Thank you.
 
End each line of string with vbCrLf or Environment.NewLine and then write to
StringWriter.

The MSDN documentation for StringWriter has an example of this.

HTH.

anyone know how to insert a multiple line of string into
stringwriter.write where it will show like this

name : test

test1

id: 2

this is the format....



Thank you.
 
anyone know how to insert a multiple line of string into
stringwriter.write where it will show like this

name : test

test1

id: 2

this is the format....

\\\
sw.Write( _
"name : test" & ControlChars.NewLine & _
" test1" & ControlChars.NewLine & _
"id: 2" _
)
///
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top