Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!p36g2000vbn.googlegroups.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Reading textfile
Date: Thu, 17 Sep 2009 08:29:09 -0700 (PDT)
Organization: http://groups.google.com
Lines: 22
Message-ID: <77a7ba31-47c5-43c2-85af-8f65271321af@p36g2000vbn.googlegroups.com>
References: <30193250-6f5b-4bfe-ae07-3ead1a055732@r36g2000vbn.googlegroups.com> 
	<fa684fa0-00f1-40ed-b516-37eca6b13756@31g2000vbf.googlegroups.com> 
	<h8t03m$mo0$1@fred.mathworks.com>
NNTP-Posting-Host: 142.20.146.226
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1253201350 18087 127.0.0.1 (17 Sep 2009 15:29:10 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 17 Sep 2009 15:29:10 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: p36g2000vbn.googlegroups.com; posting-host=142.20.146.226; 
	posting-account=i6rmKwoAAACP4NlMjQrEgszvWbe-df6L
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.14) 
	Gecko/2009090217 Ubuntu/9.04 (jaunty) Firefox/3.0.14,gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:571115


On Sep 17, 5:39 am, "Lucio Cetto" <lce...@nospam.mathworks.com> wrote:
> Bryan:
> textscan does it; if the file is too large you should increase buffersize, if every record in the file always have the same number of rows you could reshape the output cell array or play a little more with the format string and you will get the data aranged into columns very easily...
>
> fid = fopen('mcen.txt','r');
> strs = textscan(fid,'%s','delimiter','\n')
> strs{1}
> fclose(fid)
>
> HTH
> Lucio

Thanx everyone for your impost.  Lucio, your method worked perfectly -
the array is huge, but it loads the whole file and I can parse it
easily to extract the data I want.

Once again, thank you everyone.

Bryan