Advertisement
a5768549

Untitled

Jun 30th, 2018
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.36 KB | None | 0 0
  1.         Dim a As New ArrayList
  2.  
  3.         Dim sr As New System.IO.StreamReader("c:\text.txt", System.Text.Encoding.Default)
  4.  
  5.         '存入資料
  6.         Do While sr.Peek > -1
  7.             a.Add(sr.ReadLine)
  8.         Loop
  9.  
  10.         sr.Close()
  11.  
  12.         '讀取資料
  13.         For i As Integer = 0 To a.Count - 1
  14.             Dim t As String = a(i)
  15.         Next
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement