Marraco
May 28th, 2008, 12:31 PM
This line: LíneasDeArchivo = Split(sr.ReadToEnd(), vbCrLf) in this code:
Dim LíneasDeArchivo() as String
fs = File.OpenRead(FilePath)
sr = New StreamReader(fs)
LíneasDeArchivo = Split(sr.ReadToEnd(), vbCrLf)
fs.Close()
takes too much time (63 seconds, because there are 2,000,000.0 lines to pass to LíneasDeArchivo() array).
¿somebody knows a faster way?
_
Dim LíneasDeArchivo() as String
fs = File.OpenRead(FilePath)
sr = New StreamReader(fs)
LíneasDeArchivo = Split(sr.ReadToEnd(), vbCrLf)
fs.Close()
takes too much time (63 seconds, because there are 2,000,000.0 lines to pass to LíneasDeArchivo() array).
¿somebody knows a faster way?
_