Path: news.mathworks.com!newsfeed-00.mathworks.com!nlpi057.nbdc.sbc.com!prodigy.net!feeder.erje.net!news.musoftware.de!wum.musoftware.de!news.weisnix.org!citadel.nobulus.com!News.Dal.Ca!newsflash.concordia.ca!canopus.cc.umanitoba.ca!not-for-mail
From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Newsgroups: comp.soft-sys.matlab
Subject: Re: Extract just the header from a file
Date: Wed, 9 Jul 2008 23:57:34 +0000 (UTC)
Organization: National Research Council Canada - Conseil national de rechereches Canada
Lines: 24
Message-ID: <g53j9e$4jh$1@canopus.cc.umanitoba.ca>
References: <g53g1b$8dq$1@fred.mathworks.com>
NNTP-Posting-Host: origin.ibd.nrc.ca
X-Trace: canopus.cc.umanitoba.ca 1215647854 4721 192.70.172.160 (9 Jul 2008 23:57:34 GMT)
X-Complaints-To: abuse@cc.umanitoba.ca
NNTP-Posting-Date: Wed, 9 Jul 2008 23:57:34 +0000 (UTC)
Originator: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Xref: news.mathworks.com comp.soft-sys.matlab:478520



In article <g53g1b$8dq$1@fred.mathworks.com>,
Amir  <amirschricker.DELETE@DELETE.gmail.DELETE.com> wrote:
>Hi. I have files that are composed of several dozen lines 
>of text (the header) followed by several thousand lines of 
>numbers (the data); all the files are formatted like this. 

>I'd like to extract in just the header.

Is the number of header lines constant? Or is it easily predictable
from information that appears on the first line or two?

Do all the header lines happen to start with the same sequence
of characters (e.g., a '#' symbol at the beginning of each)?

Is there a specific marker for the end of the headers?

Is there something about the numberic lines that would allow you
to figure, 100% certain, that you were into the numbers as
soon as you had examined one of them?

-- 
  "Beauty, like all other qualities presented to human experience,
  is relative; and the definition of it becomes unmeaning and
  useless in proportion to its abstractness." -- Walter Pater