[EMAIL PROTECTED] wrote:

It will only be this simple if you can guarantee that the original
file is actually sorted by the first field.

And if not you can either sort the file ahead of time, or just keep reopening the files in append mode when necessary. You could sort them in memory in your Python program but given the size of these files I think one of the other alternatives would be simpler. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Reply via email to