I'm doing:
Dim Contents() As String = System.IO.File. ReadAllLines("C :\MyFile.txt") with
upwards of 100,000 lines.
This is a brilliantly simple and fast way of creating an array from a text
file. However, it seems to be restricted as there are no overloads for
FileSharing (I have another application which might add to the file whilst
it is being read). The only alternative I have found is using a large amount
of looping with StreamReader which takes forever.
Is there another way?
-Jerry
Dim Contents() As String = System.IO.File. ReadAllLines("C :\MyFile.txt") with
upwards of 100,000 lines.
This is a brilliantly simple and fast way of creating an array from a text
file. However, it seems to be restricted as there are no overloads for
FileSharing (I have another application which might add to the file whilst
it is being read). The only alternative I have found is using a large amount
of looping with StreamReader which takes forever.
Is there another way?
-Jerry
Comment