Split openFileWrite for new files, existing files