Code creating the file file[AB].txt.