Path: news.mathworks.com!not-for-mail
From: "Pekka Kumpulainen" <pekka.nospam.kumpulainen@tut.please.fi>
Newsgroups: comp.soft-sys.matlab
Subject: Re: N.B. -- Re: reading from a text file
Date: Tue, 19 May 2009 11:11:02 +0000 (UTC)
Organization: Tampere University of Technology
Lines: 25
Message-ID: <guu446$eh1$1@fred.mathworks.com>
References: <gurtb5$h3$1@fred.mathworks.com> <guru1n$gsh$1@fred.mathworks.com> <_Nidnc71fN-aMYzXnZ2dnUVZ_jSdnZ2d@earthlink.com> <gusph1$nv9$1@fred.mathworks.com>
Reply-To: "Pekka Kumpulainen" <pekka.nospam.kumpulainen@tut.please.fi>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1242731462 14881 172.30.248.35 (19 May 2009 11:11:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 19 May 2009 11:11:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 218565
Xref: news.mathworks.com comp.soft-sys.matlab:540952


"us " <us@neurol.unizh.ch> wrote in message <gusph1$nv9$1@fred.mathworks.com>...
> Any one <?O75z!/9?s@WqP0SZo?XAs0NO2&D}CA?1_G.#`}> wrote in message <_Nidnc71fN-aMYzXnZ2dnUVZ_jSdnZ2d@earthlink.com>...
> > us wrote on 18-May-09 08:15 :
> > [snip]
> > >      fnam='foo.txt';     % <- your file name
> > >      s=textread(fnam,'%n','headerlines',3,'whitespace','}');
> > [snip]
> > 
> > Help -> Search -> textread:
> > 
> > "Note   textread is not recommended. Use textscan to read data from a 
> > text file."   -- R2009a help page
> 
> well,
> here, we are (for good reasons) still working with r2008b...
> also, i do not agree with this help-statement (for very good reasons)...
> 
> just a thought
> us

Would you care to share the reasons for disagreeing with this help?
This note has been around at least since 2006a (didn't have older ones at hand)
"Note   The textscan function is intended as a replacement for both textread and strread."
Now in 2009a the text has been modified to more strict suggestion. It doesn't say it will be removed in future versions. Yet. 
But is textscan has some major disadvantages it would be nice to know. I haven't had any problems with it so far.