Writing to stat-file

Compiled