I need to dump a Queue to a textfile with one item on each line. I am using the following code:
Dim objStreamWriter As System.IO.StreamWriter
readthread.Abort()
objStreamWriter = New System.IO.StreamWriter("c:\testtext.txt")
Do While MessageQue.Count > 0
objStreamWriter.WriteLine(MessageQue.Dequeue)
Loop
objStreamWriter.Close()
however; seems it just writes one line to the file (and I know I have more than that in the Queue?????
Dim objStreamWriter As System.IO.StreamWriter
readthread.Abort()
objStreamWriter = New System.IO.StreamWriter("c:\testtext.txt")
Do While MessageQue.Count > 0
objStreamWriter.WriteLine(MessageQue.Dequeue)
Loop
objStreamWriter.Close()
however; seems it just writes one line to the file (and I know I have more than that in the Queue?????