C
Chad Z. Hower aka Kudzu
I have a stream, I need to get it into a string. Is this the best way to do
it? Seems like a lot of junk just to get it into the string.
Forget the fact that its VB - its for inside a VB project
Dim LASCII As New ASCIIEncoding
Dim LResult As String
Dim LStream As New MemoryStream
<some stuff that loads into the stream>
LResult = LASCII.GetString(LStream.ToArray)
LStream.Close()
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
ELKNews - Get your free copy at http://www.atozedsoftware.com
it? Seems like a lot of junk just to get it into the string.
Forget the fact that its VB - its for inside a VB project
Dim LASCII As New ASCIIEncoding
Dim LResult As String
Dim LStream As New MemoryStream
<some stuff that loads into the stream>
LResult = LASCII.GetString(LStream.ToArray)
LStream.Close()
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
ELKNews - Get your free copy at http://www.atozedsoftware.com