Maximum Array of Strings VisualBasic WSH

后端 未结 3 436
悲哀的现实
悲哀的现实 2021-01-15 04:48

I\'m writing a WSH script in VB to read a massive directory listing generated with a redirected directory listing via .Run method.

The directory listing is about 840

3条回答
  •  萌比男神i
    2021-01-15 04:52

    Would it not be better, in this instance, to cycle through the file first and count the number of lines, then Redim the array to the exact size required. Then close the file open it again this time you actually assign the lines to the array elements?

提交回复
热议问题