I very rarely write to text files, but have encountered a situation where I cannot avoid it. I am using a StreamWriter to write lines of text to a text file. Here is a sample of what I have:


vb.net Code:
  1. Dim WriteThisInfo As String = "12345678901234567890"
  2.  
  3. Using myStream As StreamWriter = New StreamWriter("Sample.txt")
  4.  
  5.      myStream.WriteLine(WriteThisInfo)
  6.  
  7. End Using


When I open the text file, this is what I see:

†††〲㌱㘰㈰㘱㠱〲〲㌱㘰㈰㘱㠱ㄴ‰††‰††‰††‰††‰††‰††‰††‰††‰� �†‰††‰††‰††‰††‰††‰††‰††‰††‰††‰


Any ideas?