Output to Text File

Messages
8,474
Location
Australia
I Feel like such a dunce but i have had a mind freeze. I Have done this many times yet i have *Completely* Forgotten how to Out put Text boxes to a Text File.

Basically i just want to output some fields to a text box in Visual Studio.
 
Bump. It's such a simple answer and i feel stupid for not knowing the answer (Considering i made a full word processor a year back).

Some one please help :)
 
Edit,I Just get errors :(

P.s i did google a bit on the subject but didnt stumble across that link.

So after much deliberation i have found that a modified version of this code works perfect!

Dim savef As New System.IO.StreamWriter("c:/text.txt")
savef.Write(textbox1.text + ControlChars.NewLine + textbox2.text + ControlChars.NewLine + textbox3.text)
savef.Close()

I Just need to figure out how to use the Save file dialog :D
 
Back
Top Bottom