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

candiazoo at attbi.com candiazoo at attbi.com
Wed Jun 26 21:28:22 EDT 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