I have a Visual Studio VB.NET program with one form. The form has one text box and one button. You enter text in the text box, click the button, and your input is saved in a new text filed called TextFile1.txt. It works fine. Here's the code for the Button1_Click.
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
("c:\TextFile1.txt", TextBox1.Text, False)
MsgBox("File saved as TextFile1.txt")
I tried to create the same program in Visual C#, but it doesn't work. Here's the code for the Button1_Click.
private void Button1_Click(object sender, EventArgs e)
("File saved as TextFile2.txt");
I don't know how to make the C# version work. I'm going to attach both programs
as zip files because this page won't let me attach them.