First of all, please read my comment to the question.
Secondly, follow the anwers to your previous question and try to do something!
It would be something like this:
using (System.IO.StreamWriter file = new System.IO.StreamWriter(@"C:\MyData.txt"))
{
foreach (DataGridViewRow row in DataGridView1.Rows)
{
file.WriteLine(String.Format("{0} {1} {2}", row[0], row[1], row[2]));
}
}
Note: not tested!
For further information, please see:
String.Format method[
^]