Using sWrite As New IO.StreamWriter(C:\Example\Here.txt", append as boolean)
End Using
[php]Using sWrite As New IO.StreamWriter(C:\Example\Here.txt",true) 'this will APPEND the text
end using[/php]
[php]Using sWrite As New IO.StreamWriter(C:\Example\Here.txt") 'this is just going to overwrite it, why not ,false? Because it is false by default.
end using[/php]
[php]Using sWrite As New IO.StreamWriter(C:\Example\Here.txt")
for each line as string in listbox1.items
sWrite.write(line & vbnewline)
next[/php]
[php]
dim line as string
Using sRead As New IO.StreamReader(C:\Example\Here.txt")
while not sRead.EndOfStream
line = sRead.Readline
if line <> "" then
listbox1.items.add(line)
end if
end while
end using[/php]