<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.theeggeadventure.com/wikimedia/index.php?action=history&amp;feed=atom&amp;title=TXF_2_CSV</id>
	<title>TXF 2 CSV - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.theeggeadventure.com/wikimedia/index.php?action=history&amp;feed=atom&amp;title=TXF_2_CSV"/>
	<link rel="alternate" type="text/html" href="https://www.theeggeadventure.com/wikimedia/index.php?title=TXF_2_CSV&amp;action=history"/>
	<updated>2026-05-12T21:20:45Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.0-beta</generator>
	<entry>
		<id>https://www.theeggeadventure.com/wikimedia/index.php?title=TXF_2_CSV&amp;diff=2353&amp;oldid=prev</id>
		<title>Egge at 17:21, 20 February 2011</title>
		<link rel="alternate" type="text/html" href="https://www.theeggeadventure.com/wikimedia/index.php?title=TXF_2_CSV&amp;diff=2353&amp;oldid=prev"/>
		<updated>2011-02-20T17:21:43Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:21, 20 February 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;I used to use Scottrade as my broker and they provide capital gains information in an exportable TXF format file.  I use TaxAct Online to process my tax return.  TaxAct can&amp;#039;t be bothered to create a TXF import, however, they do provide a CSV import.  I figured it would be fairly trivial to transform the data from one format to another.  The following is a ruby script which does just that.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;I used to use Scottrade as my broker and they provide capital gains information in an exportable TXF format file.  I use TaxAct Online to process my tax return.  TaxAct can&amp;#039;t be bothered to create a TXF import, however, they do provide a CSV import.  I figured it would be fairly trivial to transform the data from one format to another.  The following is a ruby script which does just that.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;code &lt;/del&gt;lang=&quot;ruby&quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;geshi &lt;/ins&gt;lang=&quot;ruby&quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#!/usr/bin/env ruby&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#!/usr/bin/env ruby&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l68&quot;&gt;Line 68:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 68:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   end&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   end&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;end&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;end&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &amp;lt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;code&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &amp;lt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;geshi&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Unfortunately, the TaxAct import only works with Internet Explorer.  This is something I found out via trial and error.  I noticed that it would reject my file so fast that it could not have possibly uploaded it to TaxAct.  Their email support was completely worthless, only sending me to a link to the one and only help page.   &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Unfortunately, the TaxAct import only works with Internet Explorer.  This is something I found out via trial and error.  I noticed that it would reject my file so fast that it could not have possibly uploaded it to TaxAct.  Their email support was completely worthless, only sending me to a link to the one and only help page.   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key egge_wikimedia-mw_:diff:1.41:old-2352:rev-2353:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Egge</name></author>
	</entry>
	<entry>
		<id>https://www.theeggeadventure.com/wikimedia/index.php?title=TXF_2_CSV&amp;diff=2352&amp;oldid=prev</id>
		<title>Egge: Created page with &#039;I used to use Scottrade as my broker and they provide capital gains information in an exportable TXF format file.  I use TaxAct Online to process my tax return.  TaxAct can&#039;t be …&#039;</title>
		<link rel="alternate" type="text/html" href="https://www.theeggeadventure.com/wikimedia/index.php?title=TXF_2_CSV&amp;diff=2352&amp;oldid=prev"/>
		<updated>2011-02-20T17:20:29Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;I used to use Scottrade as my broker and they provide capital gains information in an exportable TXF format file.  I use TaxAct Online to process my tax return.  TaxAct can&amp;#039;t be …&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;I used to use Scottrade as my broker and they provide capital gains information in an exportable TXF format file.  I use TaxAct Online to process my tax return.  TaxAct can&amp;#039;t be bothered to create a TXF import, however, they do provide a CSV import.  I figured it would be fairly trivial to transform the data from one format to another.  The following is a ruby script which does just that.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;ruby&amp;quot;&amp;gt;&lt;br /&gt;
#!/usr/bin/env ruby&lt;br /&gt;
&lt;br /&gt;
in_header=true&lt;br /&gt;
idx=0&lt;br /&gt;
description=nil&lt;br /&gt;
date_end=nil&lt;br /&gt;
price_end=nil&lt;br /&gt;
date_start=nil&lt;br /&gt;
price_start=nil&lt;br /&gt;
quantity=nil&lt;br /&gt;
wash_sale=&amp;#039;&amp;#039;&lt;br /&gt;
withholding=&amp;#039;&amp;#039;&lt;br /&gt;
ARGF.each do |line|&lt;br /&gt;
  line.chomp!&lt;br /&gt;
  line.strip!&lt;br /&gt;
  line.gsub!(&amp;#039;,&amp;#039;, &amp;#039;&amp;#039;)&lt;br /&gt;
  if in_header then&lt;br /&gt;
    if line == &amp;#039;^&amp;#039; then&lt;br /&gt;
      in_header = false&lt;br /&gt;
    end&lt;br /&gt;
    next&lt;br /&gt;
  end&lt;br /&gt;
  idx += 1&lt;br /&gt;
  case idx&lt;br /&gt;
  when 1..4&lt;br /&gt;
    next&lt;br /&gt;
  when 5&lt;br /&gt;
    if line =~ /P([0-9]+[.][0-9]{4}) of (.*)/ then&lt;br /&gt;
      quantity = $1&lt;br /&gt;
      description = $2&lt;br /&gt;
    else&lt;br /&gt;
      raise &amp;quot;error parsing #{line}&amp;quot;&lt;br /&gt;
    end&lt;br /&gt;
  when 6&lt;br /&gt;
    if line =~ /D(.*)/ then&lt;br /&gt;
      date_start = $1&lt;br /&gt;
    else&lt;br /&gt;
      raise&lt;br /&gt;
    end&lt;br /&gt;
  when 7&lt;br /&gt;
    if line =~ /D(.*)/ then&lt;br /&gt;
      date_end = $1&lt;br /&gt;
    else&lt;br /&gt;
      raise&lt;br /&gt;
    end&lt;br /&gt;
  when 8&lt;br /&gt;
    if line =~ /[$](.*)/ then&lt;br /&gt;
      price_start = $1&lt;br /&gt;
    else&lt;br /&gt;
      raise&lt;br /&gt;
    end&lt;br /&gt;
  when 9&lt;br /&gt;
    if line =~ /[$](.*)/ then&lt;br /&gt;
      price_end = $1&lt;br /&gt;
    else&lt;br /&gt;
      raise&lt;br /&gt;
    end&lt;br /&gt;
  when 10&lt;br /&gt;
    if line == &amp;#039;^&amp;#039; then&lt;br /&gt;
      print &amp;quot;\&amp;quot;#{description}\&amp;quot;,#{date_end},#{price_end},#{date_start},#{price_start},#{wash_sale},#{withholding},#{quantity},\r\n&amp;quot;&lt;br /&gt;
      idx = 0&lt;br /&gt;
    end&lt;br /&gt;
  else&lt;br /&gt;
    raise&lt;br /&gt;
  end&lt;br /&gt;
end&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Unfortunately, the TaxAct import only works with Internet Explorer.  This is something I found out via trial and error.  I noticed that it would reject my file so fast that it could not have possibly uploaded it to TaxAct.  Their email support was completely worthless, only sending me to a link to the one and only help page.  &lt;br /&gt;
&lt;br /&gt;
I logged onto a Windows machine and was able to upload the file without issue using IE 7.  TaxAct then allows you to select which columns match which header.  If you provide a header line it will auto select all matching headers.  This is nice, but on the next screen having a header line prevents you from using the &amp;#039;Import All&amp;#039; feature.  The whole reason I went through the import process is because I have hundreds of records to input.  I deleted the header, and the was able to import all the data.&lt;br /&gt;
&lt;br /&gt;
[[Category:Ruby]]&lt;/div&gt;</summary>
		<author><name>Egge</name></author>
	</entry>
</feed>