Create write-file