Best way to write data from form

I'm a VB newbie in this respect so please be patient with me! I have an app that requires the user to input a bunch of values for various things in textboxes, datagridviews and propertygrids. I want this user input to be written to a text file in a specific format (say, on the click of a button, but dynamic writing wouldn't be so bad!)

What is the best way to do this? I'm thinking using a dataset, but I'm no expert so a bit of advice would be helpful.

So many data into a text file? Is this a smart way to do it? How will you then know what is what?
You can use flags like some special characters that the code can recognize them as NOT-TEXT, but like: this is from button1, this is from datagridview, and so on. You can put this into square brackets: [textBox1], or [datagridview1],...

To get all data to be written into text file would be best to use StringBuilder class, and append all to it from all controls.
From textboxes its simple to get Text, from dataGridView (dgv) its a bit harder. I assume your dgv is already bound to some data source (like dataset, or datatable) so you can loop through rows of dataTable and create a stirng from each row (if its not bound you can do the same with looping through dgv it self).

It has to be a text file because another program I use at work will read the text file and do an analysis. Also, I can handle writing the data from text boxes and DGVs (in fact, I've done it already), but I have a number of customised PropertyGrids, and writing the data from these is proving to be difficult.