in reply to efficiently printing to 30 files
Check this node, where the same problem was analyzed and benchmarked.
Extreme Example of TMTOWTDI