I am trying to write multiply text from textboxes.
. . .
to write from multiply textboxes.
Do you mean multiple?
If you do thenCan't you just make another textbox and add another line?
Dim FILE_NAME As String = "C:\ test2.txt"
If System.IO.File.Exists(FILE_NAME) Then
objWriter.Write(Textbox1.Text)
objWriter.Write(Textbox2.Text)
objWriter.Close()
MsgBox("Text written to file")
Else
MsgBox("File doesn't exist")
End if
elseThen you must want to multiply it. Just add another textbox and use this code.
Dim FILE_NAME As String = "C:\ test2.txt"
If System.IO.File.Exists(FILE_NAME) Then
objWriter.Write(Val(Textbox1.Text) * Val(Textbox2.Text))
objWriter.Close()
MsgBox("Text written to file")
Else
MsgBox("File doesn't exist")
End if
end ifIf I don't have it right thenCould you explain it more clearly?
end if