I'm currently writing data to a memory stream using the following
The issue I have is that after Line 3 there is a blank line . I think I need to chance line 3 from _tw.WriteLine to something that does not put a line terminator on it
VB.NET:
Dim _ms As New MemoryStream
Dim _tw As TextWriter = New StreamWriter(_ms)
_tw.WriteLine("Line 1")
_tw.Flush()
_tw.WriteLine("Line 2")
_tw.Flush()
_tw.WriteLine("Line 3")
_tw.Flush()
_tw.Close
The issue I have is that after Line 3 there is a blank line . I think I need to chance line 3 from _tw.WriteLine to something that does not put a line terminator on it