Files : add the `writeFileAsText` convenience method