Revert "Revert "WriteUtil""

This reverts commit 1b9753bc0cf967637e40ca948d0ce3effb400ae2.
2