From: David Lowndes on
>I want to know why is writing into multiple files slow. for the single
>file also we are opening and closing it 400 times so why is this
>running 80 seconds faster.

If you're overwriting the same file and aren't altering the size,
you're probably writing to the same areas of the disk, so there will
be less disk head movements. There's probably some caching benefit as
well.

Dave