Question from Newbie

Jase3085

New member
Joined
Mar 4, 2005
Messages
4
Location
NZ
Programming Experience
Beginner
Hey,

Im trying to create a log file that logs everything that was typed in a textbox.

So if i have a textbox and a 'submit' button, then after i click submit, everything that was typed in the textbox should be logged to a wordpad or notepad file.

Plz Help???
-Jase
 

TPM

Well-known member
Joined
Dec 7, 2004
Messages
623
Location
CA
Programming Experience
3-5
Is this a web project?
 

Jase3085

New member
Joined
Mar 4, 2005
Messages
4
Location
NZ
Programming Experience
Beginner
Hey TPM

No im working on a windows app.

-Jase
 

JuggaloBrotha

VB.NET Forum Moderator
Staff member
Joined
Jun 3, 2004
Messages
4,524
Location
Lansing, MI; USA
Programming Experience
10+
VB.NET:
Dim swOutPut As New System.IO.StreamWriter("C:\MyTextFile.txt")
swOutPut.Write(TextBox.Text)
swOutPut.Close()
is one way, there are many when it comes to TextFiles
 

Jase3085

New member
Joined
Mar 4, 2005
Messages
4
Location
NZ
Programming Experience
Beginner
Hey,
Thanks Juggalo- i got it to work, much appreciated
cool avatar btw lol

-Jase
 
Top Bottom