Most efficient way to write data out to a text file?

candiazoo at attbi.com candiazoo at attbi.com
Thu Jun 27 03:28:22 CEST 2002


I assume some sort of block i/o or preallocating a large block of file space
would be the best way to do it?  I am outputting about 700,000 records to a text
file and my program only spits out about 20 records per second.  This is using
standard file open and write...

This is on a W2K machine... perhaps I should use the win32file interface?  Any
thoughts/opinions?

Thank you!

Mike J.



More information about the Python-list mailing list