Simplify WriteFileRaw