文本
a.com
b.com如何读取url到数组?

解决方案 »

  1.   

    dim strAll as string
    open "c:\data.txt" for input as #1
    strAll = input(lof(1), 1)
    close #1
    dim array() as string
    array = split(strAll, vbcrlf)
      

  2.   


                System.IO.StreamReader reader = new System.IO.StreamReader("c:\\url.txt");
                while (!reader.EndOfStream)
                {
                    string s = reader.ReadLine();
                    //把s放到数组
                }