954,206 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

DataTable To CSV Don't have a clue

I've built a Datatable that reads in a text file does some manipulation on it and then It's just sitting there. I've only been doing This for a few weeks and have been Stumbling through it at best. A friend of mine sent me this and said that this should work. But I am unsure on what items need to be created and What is the "sb" in the code is supposed to be? I know this needs modification but not sure how. Any Links or help would be very helpful Thank you.


[code vb6]
Dim strContents As String
Dim objReader As StreamWriter


For Each R As DataRow In TABLES.Rows
For Each o As Object In R.ItemArray
sb.Append(o.ToString + ",")
Next
sb.Append(Environment.NewLine)
Next
[/code]

jricklefs
Newbie Poster
6 posts since Aug 2007
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You