<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: VB.NET Set Data Table to CSV File</title>
	<atom:link href="http://redsouljaz.com/2010/06/03/vb-net-set-data-table-to-csv-file/feed/" rel="self" type="application/rss+xml" />
	<link>http://redsouljaz.com/2010/06/03/vb-net-set-data-table-to-csv-file/</link>
	<description>My Personal Blog&#039;s</description>
	<lastBuildDate>Wed, 07 Mar 2012 23:43:23 +0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Roger</title>
		<link>http://redsouljaz.com/2010/06/03/vb-net-set-data-table-to-csv-file/comment-page-1/#comment-227</link>
		<dc:creator>Roger</dc:creator>
		<pubDate>Wed, 06 Oct 2010 15:59:05 +0000</pubDate>
		<guid isPermaLink="false">http://redsouljaz.com/?p=323#comment-227</guid>
		<description>Hello, something like this might be better, thanks:

        Dim writer As System.IO.StreamWriter = New System.IO.StreamWriter(path_filename)

        Dim colArray(et.Columns.Count) As Array
        For col As Integer = 0 To et.Columns.Count - 1
            colArray.SetValue(et.Columns.Item(col).ColumnName, col)
        Next

        writer.WriteLine(Join(colArray, &quot;,&quot;))

        For Each record As DataRow In et.Rows
            writer.WriteLine(Join(record.ItemArray(), &quot;,&quot;))
        Next

        If Not writer Is Nothing Then writer.Close()</description>
		<content:encoded><![CDATA[<p>Hello, something like this might be better, thanks:</p>
<p>        Dim writer As System.IO.StreamWriter = New System.IO.StreamWriter(path_filename)</p>
<p>        Dim colArray(et.Columns.Count) As Array<br />
        For col As Integer = 0 To et.Columns.Count &#8211; 1<br />
            colArray.SetValue(et.Columns.Item(col).ColumnName, col)<br />
        Next</p>
<p>        writer.WriteLine(Join(colArray, &#8220;,&#8221;))</p>
<p>        For Each record As DataRow In et.Rows<br />
            writer.WriteLine(Join(record.ItemArray(), &#8220;,&#8221;))<br />
        Next</p>
<p>        If Not writer Is Nothing Then writer.Close()</p>
]]></content:encoded>
	</item>
</channel>
</rss>

