i want to append text to "file.txt" in each new line. But its joining text when i use "write" instead of "writeline" like this "TEXTTEXT"
The problem is "writeline" leaves characters end of the text as if you press enter like space. you just see them when you open it with wordpad if you select the text.
And if you get read this lines but StreamReader and assign a variable this chars will be added to end of the text and you get error.
i cant use "Write" beacause of it is joining text if append new text
i am wating for your help. How can i get it write to new line using "Write" or solve end of chars in "WriteLine" command?
Dim fs As IO.FileStream = New IO.FileStream("file.txt", IO.FileMode.Append)
Dim sw As IO.StreamWriter = New IO.StreamWriter(fs)
sw.Write("TEXT",Trim)
sw.Close()