write content for custom file