I know How to Delete a Textfile , I even know how to write the temp string data into a TextFile. But i do noy know how to delete from String array,into which i read all the data of the file. Mine Code is as under,Plz help me out. I will ber very thankful to U.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim RowNum As ListViewItem
For Each RowNum In ListView2.SelectedItems
ListView2.Items.Remove(RowNum)
Next
Dim arrlines() As String = IO.File.ReadAllLines("c:\Records.txt")
End sub