logo
  • 教程列表
  • SO官方文檔
  • 陣列和迴圈
    • 1.陣列 - 靜態
    • 2.陣列 - 動態
    • 5.從文字檔案建立陣列
    • 7.對於每個迴圈
    • 6.對於迴圈
    • 8.Do While 迴圈
    • 9. Do Until Loop
    • 3.陣列 - 多維
    • 4.陣列 - 多維 - 動態
  1. StackOverflow 文件
  2. vbscript 教程
  3. 陣列和迴圈
  4. 5.從文字檔案建立陣列

5.從文字檔案建立陣列

Created: November-22, 2018

Dim cars
Dim filefullname : filefullname = "C:\testenv\test.txt"
'If you can, create an instaneous read for text file data for better memory handling.
'Unless it's a large file and that's impossible. 
cars = Split(CreateObject("Scripting.FileSystemObject").OpenTextFile(filefullname, 1).ReadAll, vbcrlf)
  • 7.對於每個迴圈
  • 2.陣列 - 動態

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 關於本站
  • 免責聲明