473,385 Members | 1,445 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

stringwriter

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.

Nov 21 '05 #1
2 2742
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.

<zo****@yahoo.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
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.
Nov 21 '05 #2
<zo****@yahoo.com> schrieb:
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" _
)
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: xmlguy | last post by:
This is part of the application that reads XML from file (that has UTF-8) into an XmlTextReader XmlTextReader myXmlReader = new XmlTextReader(args); It then instantiates an object/class...
4
by: Einar Høst | last post by:
Hi, I'm having weird problems using StringWriter and XmlTextWriter. My code looks like this: StringWriter sw = new StringWriter(CultureInfo.InvariantInfo); XmlTextWriter xtw = new...
3
by: Robert Linder | last post by:
I am trying to write 'StringWriter SW = new StringWriter();' to a FileStream. The code writes the text to file, but NotePad does not see the NewLines. Below is the code snippet taken from a...
6
by: kinekine | last post by:
Hello, i have a big problem with my email component, because each time i write the generated message directly to the spooler, the streamwriter will write in Unicode. The file starts with a FF...
2
by: das | last post by:
hello all, might be a dumb one, I have a StringWriter to which I write some text, after doing this I want to read this into a StringReader so that I can manipulate the data ex:...
4
by: fabrice | last post by:
Re hello, I m' sorry for my questions .. Under framework 1.1 with vb.net, i m using a StringWriter object to export in .xls file. To empty memory, I would like to use the propterty dispose on...
3
by: darrel | last post by:
I'm creating an RSS feed based off of this tutorial: http://www.uberasp.net/ArticlePrint.aspx?id=17 In a nutshell, they are doing: Response.Clear() Response.ContentType = "text/xml"...
2
by: Harry Haller | last post by:
Can I remove text from a StringWriter ? I have a StringWriter object, the content of which looks like this: "<div>Some other html which I wish to keep</div>" Can I remove the unwanted <div>,...
0
by: Arch Stanton | last post by:
I'm writing the contents of my datagrid to an Excel spreadsheet using the following code: Sub WriteToExcel(Sender as Object, E as EventArgs) 'Export the contents of the current datagrid to Excel...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.