create files before writing.