Hi
I want to write the user input data to the text file. I want it to be in same line like this
G1 Z1. F80.
If i use my coding like this is not working:
Code:Dim FILENAME As String = "C:\kaya.txt" Dim objStreamWriter As StreamWriter objStreamWriter = File.AppendText(FILENAME) objStreamWriter.WriteLine("G1 " & TextBox2.Text, "F " & TextBox3.Text) ' Close the stream objStreamWriter.Close()
if i change it like this :It become two lines. How can i solve this problem?Code:objStreamWriter.WriteLine("G1 " & TextBox2.Text) objStreamWriter.WriteLine("F " & TextBox3.Text)
Can any one help me.




Reply With Quote