WQ file write