|
-
Mar 11th, 2011, 02:02 AM
#1
Thread Starter
Junior Member
how to store two text box value to single text file
Hello i m jst a new bee in coding so i need a lil bit favour of urs ... all i want to do is i need to store two text box value to single text file!!!sry if the thread post earliar in the forum!!!i hav checked other soluttions bt can't figure out wats goin wrong with this code ... thanks in advance
Dim a As New FileSystemObject, data As TextStream
Dim text As String
Dim text1 As TextBox
text = txtMsg.Text
data = a.CreateTextFile("C:\test.txt")
data.WriteLine(text)
n i got error like dis
"""Object reference not set to an instance of an object.""""
this is wat i m getting although it's not an error it's a warnig message but program terminates after this message .. n i'm trying 2 sort out d problem i want 2 ask u quetion that is it possible because i'm writing
data.WriteLine(text)
multiple times in more than one text boxes???? n is it possible to store more than one data in the txt file???
for an example i want 2 store phone number, message , time like this
90XXXXXXXX,hello, time
90XXXXXXXX,hi, time
eagerly waiting for ur reply
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|