[18809] in s-news-athena
[S] reading files a portion at a time
daemon@ATHENA.MIT.EDU (Ranjan Maitra)
Mon Aug 2 10:32:04 1999
Date: Mon, 2 Aug 1999 10:26:14 -0400 (EDT)
From: Ranjan Maitra <maitra@math.umbc.edu>
To: S-news <s-news@wubios.wustl.edu>
Message-Id: <Pine.LNX.4.04.9908021020380.1646-100000@param.math.umbc.edu>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Does anyone know how I can read a file a portion at a time. As an example:
suppose I have a file of 100 numbers. I want to read 50 of these, do some
operations, and then read the remaining 50.
I realize that this can be done by reading the whole thing in, but this is
just an example. My real application has a huge file and it can't be read into
memory (nor do I think it is meaningful when I am using disjoint portions at
a time).
Thanks to all those who responded to my earlier request on gif saving in unix:
I am trying the suggestions out and will post a summary after their successful
completion. (Actually this question arises from there.)
Thanks,
Ranjan
***************************************************************************
Ranjan Maitra, Department of Mathematics and Statistics,
University of Maryland, Baltimore County, Baltimore, MD 21250, USA.
***************************************************************************
\|/ satyamevajayate | tamasomaajyotirgamaya \|/
-*- | -*-
/|\ TRUTH SHALL PREVAIL | FROM DARKNESS TO LIGHT /|\
***************************************************************************
Ph: 410-455-2436 FAX: 410-455-1066 http://www.math.umbc.edu/~maitra
***************************************************************************
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news