pre file writer