I been working on this thing all day today, and I finally gave up and decided to ask for help from you guys. Basically, whenever I hit Add, it just doesn't write in a text file.
I am using Listview that has 2 columns.
What am I doing wrong?
fListView.Items.Add(fname.Text).SubItems.Add(femail.Text)
Try
w = New IO.StreamWriter(System.Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) & "/flist.txt", True)
Dim ii As Integer
Dim line As String = r.ReadLine
For ii = 0 To fListView.Items.Count - 1
w.WriteLine(fListView.Items.Item(ii).Text & ":" & fListView.Items.Item(ii).SubItems.Item(ii).Text)
Next
w.Close()
Catch
End Try
I am using Listview that has 2 columns.
What am I doing wrong?