Basically what i'm trying to do is delete an old textfile in place of a new one with the different text that a person types in.
this is basically the code:
string Go = "go to"; System.IO.File.Delete("C:/text.txt"); StreamWriter realm = new StreamWriter("C:/text.txt"); realm.WriteLine(Go); realm.Write(comboBox1.Text); realm.Close(); MessageBox.Show("Done!", "Finished");
So, when they type in the combo box, the text they typed in there should appear after "go to" But the problem is that it makes two lines instead of 1 line. like this
go to combobox.text
How can i change the code to make it so that my string, and combobox1.text stay on the same line?
Any help would be appreciated.