Dim myWriter As New IO.StreamWriter(testfile) For Each myItem As ListViewItem In ListView1.Items myWriter.WriteLine(myItem.Text & "#" & myItem.SubItems(1).Text & "#" & myItem.SubItems(2).Text & "#" & myItem.SubItems(3).Text) Next
But this code does not write to the file
SPNeeds although there is no error message Both uses private varables Dim myWriter As New IO.StreamWriter(SPNeeds) For Each myItem As ListViewItem In Needit.Items myWriter.WriteLine(myItem.Text & "#" & myItem.SubItems(1).Text & "#" & myItem.SubItems(2).Text & "#" & myItem.SubItems(3).Text) Next
Sorry, only students may add comments.
Click here for more
information on how you can set up an account.
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.
This thread is now CLOSED. If you wish to comment, start a NEW discussion in
Visual Basic Forum.