Create file when writing to it