[UPDATE] extracted file write stream.