Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Creating a Log, xml or text file
Date: Sun, 24 May 2009 08:50:03 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 22
Message-ID: <gvb1nq$plr$1@fred.mathworks.com>
References: <gv907h$jec$1@fred.mathworks.com> <gv9an4$84h$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1243155003 26299 172.30.248.38 (24 May 2009 08:50:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 24 May 2009 08:50:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1656306
Xref: news.mathworks.com comp.soft-sys.matlab:542121

Thank you for your reply. Helpped alot. But I still couldn't figure out how to append the text within the same file. 

global fid
fid = fopen('log.txt','wt');
fprintf(fid, 'text line number 1 \n');

Awaiting
regards,

"Sadik " <sadik.hava@gmail.com> wrote in message <gv9an4$84h$1@fred.mathworks.com>...
> You can definitely use the fprintf function. The help documentation should have enough explanation on that.
> 
> <gv907h$jec$1@fred.mathworks.com>...
> > Hi, 
> > 
> > How to create a log, xml or text file?
> > 
> > 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.
> > 
> > Can anyone help
> > 
> > thanks