write maximum resources to files.

Necessary intermediate data representation since gnu plot only reads from files.