Read a record instead of a line from a file

Emile van Sebille emile at fenx.com
Fri Aug 24 11:19:14 EDT 2001


If the file is small enough to be read into memory, you could read it in
then split it on the delimiter.  Otherwise, you'd need to write something
that reads the file in chunks and returns records.

HTH,

--

Emile van Sebille
emile at fenx.com

---------
"YMK" <gbeymk at sgh.com.sg> wrote in message
news:3B86028A.9F5F9967 at sgh.com.sg...
> If I know the "Record Separator" of a flat file, how do I set to read
> one record at a time ?




More information about the Python-list mailing list