File formatting implementation.