Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!2g2000prl.googlegroups.com!not-for-mail
From: Andrew <andrewkgentile@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: strings and files and concatenations
Date: Wed, 12 Aug 2009 19:30:29 -0700 (PDT)
Organization: http://groups.google.com
Lines: 22
Message-ID: <31f96cfe-2edb-4e72-bfe4-b82160584ea4@2g2000prl.googlegroups.com>
NNTP-Posting-Host: 68.238.77.85
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1250130629 30962 127.0.0.1 (13 Aug 2009 02:30:29 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 13 Aug 2009 02:30:29 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: 2g2000prl.googlegroups.com; posting-host=68.238.77.85; 
	posting-account=0QzK9QoAAAASked1gGMxOrY40XaDDtFq
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.13) 
	Gecko/2009073022 Firefox/3.0.13,gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:562879


Below is a very abbreviated chunk of a much larger data file.  I want
to write some code which will search through this file and pull all
the values shown between <Quad> and <\Quad>.  There are hundreds of
these sets of data in each file, and so I also want to assign a name
or number to this set of data.  The name of the set is slot 1, which
is shown in the first line below.  Can someone please explain how to
pull the values out of this file?  I know how to use fopen, and a few
string functions.  I have been able to find all the lines with <Quad>
in it, but I can't figure out how to pull the values out or the string
name.  Any help would be appreciated.  Thanks.

<SlotData slot="001">
<Notes></Notes>
<Display>yes</Display>
<ForwardExciter>
<Range>4A</Range>
<SpuPhaseData>0886</SpuPhaseData>
<SpuCalData>0810</SpuCalData>
<Quad>0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, </Quad>