<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, writedata (on a single line)</title>
    <link>http://www.mapleprimes.com/questions/129570-Writedata-on-A-Single-Line</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Sat, 13 Jun 2026 18:06:59 GMT</lastBuildDate>
    <pubDate>Sat, 13 Jun 2026 18:06:59 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, writedata (on a single line)</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, writedata (on a single line)</title>
      <link>http://www.mapleprimes.com/questions/129570-Writedata-on-A-Single-Line</link>
    </image>
    <item>
      <title>fprintf</title>
      <link>http://www.mapleprimes.com/questions/129570-Writedata-on-A-Single-Line?ref=Feed:MaplePrimes:writedata (on a single line):Comments#answer129585</link>
      <itunes:summary>&lt;p&gt;Try &lt;a href='http://www.maplesoft.com/support/help/search.aspx?term=fprintf,' target='_new'&gt;?fprintf,&lt;/a&gt; with the %q format if you want to include the commas&lt;/p&gt;
&lt;pre&gt;for j to 5 do&lt;br&gt;&amp;nbsp;&amp;nbsp; file := sprintf("P%d.dat", j);&lt;br&gt;&amp;nbsp;&amp;nbsp; fprintf(file, "%q\n", op(P[j]));&lt;br&gt;&amp;nbsp;&amp;nbsp; close(file);&lt;br&gt;end do:&lt;/pre&gt;</itunes:summary>
      <description>&lt;p&gt;Try &lt;a href='http://www.maplesoft.com/support/help/search.aspx?term=fprintf,' target='_new'&gt;?fprintf,&lt;/a&gt; with the %q format if you want to include the commas&lt;/p&gt;
&lt;pre&gt;for j to 5 do&lt;br&gt;&amp;nbsp;&amp;nbsp; file := sprintf("P%d.dat", j);&lt;br&gt;&amp;nbsp;&amp;nbsp; fprintf(file, "%q\n", op(P[j]));&lt;br&gt;&amp;nbsp;&amp;nbsp; close(file);&lt;br&gt;end do:&lt;/pre&gt;</description>
      <guid>129585</guid>
      <pubDate>Fri, 13 Jan 2012 02:13:16 Z</pubDate>
      <itunes:author>Joe Riel</itunes:author>
      <author>Joe Riel</author>
    </item>
    <item>
      <title>Alternative solution</title>
      <link>http://www.mapleprimes.com/questions/129570-Writedata-on-A-Single-Line?ref=Feed:MaplePrimes:writedata (on a single line):Comments#comment129593</link>
      <itunes:summary>&lt;p&gt;Thanks, Joe!&lt;/p&gt;
&lt;p&gt;In fact yesterday, after posting my question, I ended up with a naive (but&amp;nbsp; even simpler) solution, namely:&lt;span class="mainBody document"&gt;&lt;br&gt;###&lt;/span&gt;&lt;span class="mainBody document"&gt;&lt;br&gt;for j from 1 to 5 do&lt;br&gt;writedata(cat("P",j,".dat"),[op(j,P)]):&lt;br&gt;od;&lt;br&gt;###&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="mainBody document"&gt;The [] embracing my list make it look like a list of lists, so it works!&lt;br&gt;&lt;/span&gt;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;Thanks, Joe!&lt;/p&gt;
&lt;p&gt;In fact yesterday, after posting my question, I ended up with a naive (but&amp;nbsp; even simpler) solution, namely:&lt;span class="mainBody document"&gt;&lt;br&gt;###&lt;/span&gt;&lt;span class="mainBody document"&gt;&lt;br&gt;for j from 1 to 5 do&lt;br&gt;writedata(cat("P",j,".dat"),[op(j,P)]):&lt;br&gt;od;&lt;br&gt;###&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="mainBody document"&gt;The [] embracing my list make it look like a list of lists, so it works!&lt;br&gt;&lt;/span&gt;&lt;/p&gt;</description>
      <guid>129593</guid>
      <pubDate>Fri, 13 Jan 2012 10:42:56 Z</pubDate>
      <itunes:author>Carlo Carminati</itunes:author>
      <author>Carlo Carminati</author>
    </item>
  </channel>
</rss>