Fastest way to read / procsess / write text?
Chris Barker
Chris.Barker at noaa.gov
Wed Jun 5 15:35:53 EDT 2002
Martin Franklin wrote:
> Havine re-read you original version this is how to do it;-)
>
> while 1:
> data=infile.read(100000)
> if not data:
> break ## EOF reached
> ## process data.....
I think this could potentially split the file in the middle of one of
the expressions that is being searched for.
-CHB
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
More information about the Python-list
mailing list