<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/252035</link>
    <title>MATLAB Central Newsreader - Creating a Log, xml or text file</title>
    <description>Feed for thread: Creating a Log, xml or text file</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Sat, 23 May 2009 14:12:01 -0400</pubDate>
      <title>Creating a Log, xml or text file</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/252035#651864</link>
      <author>Ali Shariq Imran</author>
      <description>Hi, &lt;br&gt;
&lt;br&gt;
How to create a log, xml or text file?&lt;br&gt;
&lt;br&gt;
I'm creating a small test application for my research using which images are displayed and the viewer will rate them based on particular scale. I want to save the rating/grading for each picture in a form of text file.&lt;br&gt;
&lt;br&gt;
Can anyone help&lt;br&gt;
&lt;br&gt;
thanks</description>
    </item>
    <item>
      <pubDate>Sat, 23 May 2009 17:11:01 -0400</pubDate>
      <title>Re: Creating a Log, xml or text file</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/252035#651903</link>
      <author>Sadik </author>
      <description>You can definitely use the fprintf function. The help documentation should have enough explanation on that.&lt;br&gt;
&lt;br&gt;
&amp;lt;gv907h$jec$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hi, &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; How to create a log, xml or text file?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I'm creating a small test application for my research using which images are displayed and the viewer will rate them based on particular scale. I want to save the rating/grading for each picture in a form of text file.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Can anyone help&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; thanks</description>
    </item>
    <item>
      <pubDate>Sun, 24 May 2009 08:50:03 -0400</pubDate>
      <title>Re: Creating a Log, xml or text file</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/252035#651982</link>
      <author>Ali Shariq Imran</author>
      <description>Thank you for your reply. Helpped alot. But I still couldn't figure out how to append the text within the same file. &lt;br&gt;
&lt;br&gt;
global fid&lt;br&gt;
fid = fopen('log.txt','wt');&lt;br&gt;
fprintf(fid, 'text line number 1 \n');&lt;br&gt;
&lt;br&gt;
Awaiting&lt;br&gt;
regards,&lt;br&gt;
&lt;br&gt;
&quot;Sadik &quot; &amp;lt;sadik.hava@gmail.com&amp;gt; wrote in message &amp;lt;gv9an4$84h$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; You can definitely use the fprintf function. The help documentation should have enough explanation on that.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;lt;gv907h$jec$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; Hi, &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; How to create a log, xml or text file?&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; I'm creating a small test application for my research using which images are displayed and the viewer will rate them based on particular scale. I want to save the rating/grading for each picture in a form of text file.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Can anyone help&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; thanks</description>
    </item>
    <item>
      <pubDate>Sun, 24 May 2009 14:25:03 -0400</pubDate>
      <title>Re: Creating a Log, xml or text file</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/252035#652033</link>
      <author>Sadik </author>
      <description>When you open the file with fopen, you should write 'at' instead of 'wt'. 'a' stands for append.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&amp;lt;gvb1nq$plr$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Thank you for your reply. Helpped alot. But I still couldn't figure out how to append the text within the same file. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; global fid&lt;br&gt;
&amp;gt; fid = fopen('log.txt','wt');&lt;br&gt;
&amp;gt; fprintf(fid, 'text line number 1 \n');&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Awaiting&lt;br&gt;
&amp;gt; regards,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &quot;Sadik &quot; &amp;lt;sadik.hava@gmail.com&amp;gt; wrote in message &amp;lt;gv9an4$84h$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; You can definitely use the fprintf function. The help documentation should have enough explanation on that.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;lt;gv907h$jec$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Hi, &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; How to create a log, xml or text file?&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; I'm creating a small test application for my research using which images are displayed and the viewer will rate them based on particular scale. I want to save the rating/grading for each picture in a form of text file.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Can anyone help&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; thanks</description>
    </item>
    <item>
      <pubDate>Sun, 24 May 2009 16:56:02 -0400</pubDate>
      <title>Re: Creating a Log, xml or text file</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/252035#652052</link>
      <author>Ali Shariq Imran</author>
      <description>Thanks I've got that sorted out&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&quot;Sadik &quot; &amp;lt;sadik.hava@gmail.com&amp;gt; wrote in message &amp;lt;gvblbv$avt$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; When you open the file with fopen, you should write 'at' instead of 'wt'. 'a' stands for append.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;lt;gvb1nq$plr$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; Thank you for your reply. Helpped alot. But I still couldn't figure out how to append the text within the same file. &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; global fid&lt;br&gt;
&amp;gt; &amp;gt; fid = fopen('log.txt','wt');&lt;br&gt;
&amp;gt; &amp;gt; fprintf(fid, 'text line number 1 \n');&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Awaiting&lt;br&gt;
&amp;gt; &amp;gt; regards,&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &quot;Sadik &quot; &amp;lt;sadik.hava@gmail.com&amp;gt; wrote in message &amp;lt;gv9an4$84h$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; You can definitely use the fprintf function. The help documentation should have enough explanation on that.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;lt;gv907h$jec$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; Hi, &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; How to create a log, xml or text file?&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; I'm creating a small test application for my research using which images are displayed and the viewer will rate them based on particular scale. I want to save the rating/grading for each picture in a form of text file.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; Can anyone help&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; thanks</description>
    </item>
  </channel>
</rss>

