Path: news.mathworks.com!not-for-mail
From: "Zahra" <zahra.yamani@nrc.gc.ca>
Newsgroups: comp.soft-sys.matlab
Subject: Re: how to read and write a portion of a file
Date: Tue, 11 Nov 2008 23:56:03 +0000 (UTC)
Organization: National Research Council of Canada
Lines: 5
Message-ID: <gfd62j$s00$1@fred.mathworks.com>
References: <gfcj8m$ksi$1@fred.mathworks.com> <gfcumq$rg1$1@fred.mathworks.com>
Reply-To: "Zahra" <zahra.yamani@nrc.gc.ca>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1226447763 28672 172.30.248.37 (11 Nov 2008 23:56:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 11 Nov 2008 23:56:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1060562
Xref: news.mathworks.com comp.soft-sys.matlab:500317


Hi Negar,
Thanks. I have now learned about readline.m (from file exchange). The only issue that is remained is the fact that with readline.m one has to give the specific line numbers that you want to read from the file. So now my problem has changed to how to identify the line numbers in the file. I know for example what string I need to look for in that specific line but do not know how to determine its line number in the file. Any thouight as how one can determine a specific line number in an ascii file?

Thanks again,
Zahra