PDA

View Full Version : StreamReader help



ndt80
27-06-2005, 19:53
Dim A As StreamReader = New StreamReader("nodes.txt")
Dim B() As String '= A.ReadToEnd.Split(vbCrLf)

Dim C As String
for each C in B
Dim D As StreamReader = new StreamReader(C) <= error here
.....
......
Next C

//=======================
File "nodes.txt"

C:\1.txt
C:\2.txt
C:\3.txt

Cai problem cua minh o cho la minh chi open duoc file 1.txt, nhung den file
2.txt thi bi bao error la : The given file's format is not supported
Co ai biet la tai sao khong, help voi