How do I do the following?
Open (TextBox1.Text) for Output as #1
Print "Hello World "+(TextBox2.Text), #1
Close #1
Thanx.
Is the syntax of VB Studio.Net very different from Classical VB?
Printable View
How do I do the following?
Open (TextBox1.Text) for Output as #1
Print "Hello World "+(TextBox2.Text), #1
Close #1
Thanx.
Is the syntax of VB Studio.Net very different from Classical VB?
yes, they have vastly improved file IO in .NET
VB Code:
Dim SWriter As System.IO.StreamWriter Try SWriter = New System.IO.StreamWriter(textbox1.Text) SWriter.WriteLine("Hello World " & textbox2.text) Catch ex As Exception MessageBox.Show(ex.Message) Finally If Not SWriter Is Nothing Then SWriter.Close() SWriter = Nothing End If End Try
I have alot to learn. Thank you.