You need to first check if the file exists before creating one