Question Save Form Data To text (.txt) file

reishabh

New member
Joined
Dec 21, 2010
Messages
2
Programming Experience
1-3
Hello ,
I wanna save the data present on the form to the text file.
I am using vb.net for this. how can i write the text present on the form in the same formate (showing on the form) in the .txt file.

Please Help!!!

Thanks in Advance...
 
Create a StreamReader and specify the path of your file. You can then call WriteLine for each form field to write the data. Close the StreamWriter when you're done and you're done.
 
Thanks For your valuable reply
can u plz explain it with some code example.
I want to print form in 'as it is' formate to the .txt file.
The main issue over here is how to get the line by line form data in vb code to write it with stream writer in a text file.

Thanks again ....
 
Last edited:
Back
Top