file output formatting