Code generate a TXT file