![]() |
|
|||||||
| Notices |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Guest
Posts: n/a
|
Remove/Delete lines from an array
I am stuck, i cant work out how to remove lines from an array
I am loading a text file (a Log) into an array, I know which lines a need, but the logs can be upto 30K sometimes bigger. I found trying to delete the lines from the log file before loading in the array took ages, i thought it would be alot quicker to put it in an array and remove the unwanted lines. Also the files it stored on a network drive so i think the array option is better. Dim text As Array Dim lines As New List(Of String) text = File.ReadAllLines(strLogDestPath & fileNm) lines.AddRange(text) lines.RemoveAt(1) - I thought this should have removed the array index 1 When i took at the before and after this line nothing has changed?? Any help would be great ta |
|
|
|
#2 |
|
Newbie
Join Date: Feb 2008
Age: 37
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
![]() |
Re: Remove/Delete lines from an array
Hi Barkingmadscot,
I Have the same problem, do you get a solutions in the meantime. Kind regards Paul |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
< Windows Help - MS Office Help - Hardware Support >
| New To Site? | Need Help? |