Writing listbox items into text file
- From: kimiraikkonen <kimiraikkonen85@xxxxxxxxx>
- Date: Sat, 29 Dec 2007 01:56:23 -0800 (PST)
Hi,
I can read from a text file and insert text file's contents into a
listbox whose format is line by line using this code:
Dim reader As String
reader = My.Computer.FileSystem.ReadAllText("c:
\bookmarks.txt")
Dim strs() As String
strs = Split(reader, Environment.NewLine)
For Each s As String In strs
ListBox1.Items.Add(s)
Next
But i also want to write all listbox items into text file "line by
line"? How can i do this?
I tried My.Computer.FileSystem.WriteAlltext but couldn't make out
completely.
I hope i learn.
Thanks!
.
- Follow-Ups:
- Re: Writing listbox items into text file
- From: Herfried K. Wagner [MVP]
- Re: Writing listbox items into text file
- From: Kerem Gümrükcü
- Re: Writing listbox items into text file
- Prev by Date: Re: what source code files to backup for Windows app
- Next by Date: Re: Writing listbox items into text file
- Previous by thread: ReportViewer Not Found
- Next by thread: Re: Writing listbox items into text file
- Index(es):
Relevant Pages
|
Loading