Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
'Using writer As System.IO.StreamWriter = New System.IO.StreamWriter(Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory), "Word List.Txt", True)
Using writer As System.IO.StreamWriter = New System.IO.StreamWriter("C:\Users\Home\Desktop\lessons Word\Word List.Txt", True)
Dim curLine As String = TextBox1.Text
If (TextBox1.Text.Count > 1) Then
curLine = ""
For Each line As String In TextBox1.Text
curLine = curLine & "" & line
Next
curLine = curLine.Trim()
End If
writer.WriteLine(curLine)
End Using
End Sub
And i am write above code it is work but,if i active fist line and deactivate second line code not work,i want active fist line .he said cant find the path.
please help me
thank you
wansa