V
vodafone
I've written the code below.
Dim lastIdx As Int32
Dim appo As System.String
Dim s As String
Do
mStream.Read(ByteArray, 0, nBytes)
s = encoding.GetString(ByteArray)
s = appo & s
Dim m As Match = regExp.Match(s)
lastIdx = 0
Do While m.Success
Dim g As Group = m.Groups(0)
Dim tmp As String = (s.Substring(lastIdx, g.Index - lastIdx))
Console.WriteLine(tmp)
lastIdx = g.Index + 1
m = m.NextMatch
Loop
appo = New String(s.Substring(lastIdx))
Loop While (nBytes > 0)
I don't understand why, the second time the main do loop pass throught
the concatenation s = appo & s, s doesn't contain the concatenation,
but only the value of appo.
Some idea? I tried all the imaging thing, without result. I suppose
that could be the encoding that create confusion, but I didn't verified
yet.
Meanwhile some suggestion will be appreciated.
Thanks
Andrea
Dim lastIdx As Int32
Dim appo As System.String
Dim s As String
Do
mStream.Read(ByteArray, 0, nBytes)
s = encoding.GetString(ByteArray)
s = appo & s
Dim m As Match = regExp.Match(s)
lastIdx = 0
Do While m.Success
Dim g As Group = m.Groups(0)
Dim tmp As String = (s.Substring(lastIdx, g.Index - lastIdx))
Console.WriteLine(tmp)
lastIdx = g.Index + 1
m = m.NextMatch
Loop
appo = New String(s.Substring(lastIdx))
Loop While (nBytes > 0)
I don't understand why, the second time the main do loop pass throught
the concatenation s = appo & s, s doesn't contain the concatenation,
but only the value of appo.
Some idea? I tried all the imaging thing, without result. I suppose
that could be the encoding that create confusion, but I didn't verified
yet.
Meanwhile some suggestion will be appreciated.
Thanks
Andrea