Fix exception for file write operation
Fix exception for file write operation

QuantStack/xtensor,QuantStack/xtensor,JohanMabille/xtensor,xtensor-stack/xtensor,JohanMabille/xtensor,xtensor-stack/xtensor