Use filewrite methods that are backwards compatible