[RESOLVED] [2005] Writing text from a text box to a .txt file
Hi Everyone,
How do you export all the text in a text box to a text file?
Re: [2005] Writing text from a text box to a .txt file
This is 1 way...
VB.NET Code:
Dim objFile As New System.IO.StreamWriter("C:\Output.txt")
objFile.Write(TextBox1.Text)
objFile.Close()
objFile.Dispose()
Re: [2005] Writing text from a text box to a .txt file
Girraffe download the 101 samples projects from ms to get you started...
Re: [2005] Writing text from a text box to a .txt file
thanks everyone,
the code provided works like i needed it.
Asgorath, I will also dload your suggestion. Thanks!