Abstracted robust file creation