file: create a file on write if it does not exist