On Dec 29, 4:14 pm, "Kerem Gümrükcü" <kareem...@hotmail.comwrote:
Hi kimiraikkonen,
use this if you like:
TextWriter.WriteLine Method.
Check the Stream Classes and their derivates
that come with write line method. You also can
use plain streams of bytes and byte arrays with
your own line feeds and breaks. But if you dont
want to implement this use the already available
write line methods,...
Regards
Kerem
--
-----------------------
Beste Grüsse / Best regards / Votre bien devoue
Kerem Gümrükcü
Microsoft Live Space:http://kerem-g.spaces.live.com/
Latest Open-Source Projects:http://entwicklung.junetz.de
-----------------------
"This reply is provided as is, without warranty express or implied."
Please sample some code. There must be some ways to save all listbox
items as a text file using with my.computer.filesystem.writealltext
classes instead of using Stream Writer's "writeline" method.
I tried something with "for each" but it only saves one(last) item if
append is false.
For Each i As String In ListBox1.Items
My.Computer.FileSystem.WriteAllText("c:\test.txt",
environment.newline & i, False)
Next
If append is true, previous + current items are saved into text file.
But i want current (last updated) items to be saved in a text file.
Shorly, i want to save what and how i see in listbox items as text
file.