Exporting DataGrid to flat text file

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Caveat: newbie

I would like to take the contents of the datagrid on my form and export it
record by record to a flat text file.

After some time searching, I came across two items:

IO.File.WriteAllText
System.IO.StreamWriter

It's been too long since I've coded and need a swift kick to get some rust
off. Can someone at least point me to some examples? Ultimately, I want the
user to review the data on the form as a quick data quality check. Then, the
user will click on a button which will create the text file to be sent
somewhere else. I want to do it record by record since there are some
manipulations that are required in the final text file.

Any assistance would be greatly appreciated! Thanks!
Patrick
 
Patrix317 said:
Caveat: newbie

I would like to take the contents of the datagrid on my form and export it
record by record to a flat text file.

After some time searching, I came across two items:

IO.File.WriteAllText
System.IO.StreamWriter

It's been too long since I've coded and need a swift kick to get some rust
off. Can someone at least point me to some examples? Ultimately, I want
the
user to review the data on the form as a quick data quality check. Then,
the
user will click on a button which will create the text file to be sent
somewhere else. I want to do it record by record since there are some
manipulations that are required in the final text file.

Any assistance would be greatly appreciated! Thanks!

I am sure you'll find something.

http://www.codeproject.com/

http://www.google.com/search?hl=en&q=how+to+write+to+a+text+file+VB.net&btnG=Search
 
Back
Top