Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to remove unwanted text from a .txt file?
Date: Wed, 24 Sep 2008 01:19:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 10
Message-ID: <gbc4i6$qf5$1@fred.mathworks.com>
References: <gbbqun$qo5$1@fred.mathworks.com> <ryeCk.36464$QF5.28064@newsfe08.iad> <gbbubd$2n7$1@fred.mathworks.com> <VGfCk.562$Cl1.66@newsfe01.iad> <gbc1vn$8k6$1@fred.mathworks.com> <gbc2m6$de7$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 1222219142 27109 172.30.248.38 (24 Sep 2008 01:19:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 24 Sep 2008 01:19:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1248302
Xref: news.mathworks.com comp.soft-sys.matlab:491684


"Cy abd" <gringoven@gmail.com> wrote in message <gbc2m6$de7$1@fred.mathworks.com>...
> 
> > One would have thought that ML would have implemented an straight forward solution for such a popular problem within the textscan but unfortunately NOT! It can ignore strings but not complete lines stating with a string! Although I maybe wrong, I'm also looking into commentStyle which might just do that, does it?
> > thanks again
> 
> Well, I'll be darned, the solution was sure enough 'commentStyle' :) .

OK, I'm having problem again, I can get the line to be skipped if it starts with the same single string but how can I get lines starting with different strings to be skipped?
like any lines that start with either 'data' or 'lost'?
thanks