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:
Dim WriteThisInfo As String = "12345678901234567890" Using myStream As StreamWriter = New StreamWriter("Sample.txt") myStream.WriteLine(WriteThisInfo) End Using
When I open the text file, this is what I see:
†††〲㌱㘰㈰㘱㠱〲〲㌱㘰㈰㘱㠱ㄴ‰††‰††‰††‰††‰††‰††‰††‰††‰� �†‰††‰††‰††‰††‰††‰††‰††‰††‰††‰
Any ideas?




Reply With Quote