Fast file data retrieval?

Virgil Stokes vs at it.uu.se
Mon Mar 12 20:39:34 CET 2012


I have a rather large ASCII file that is structured as follows

header line
9 nonblank lines with alphanumeric data
header line
9 nonblank lines with alphanumeric data
...
...
...
header line
9 nonblank lines with alphanumeric data
EOF

where, a data set contains 10 lines (header + 9 nonblank) and there can 
be several thousand
data sets in a single file. In addition,*each header has a* *unique ID 
code*.

Is there a fast method for the retrieval of a data set from this large 
file given its ID code?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20120312/de8d07b2/attachment.html>


More information about the Python-list mailing list