Generate of txt or csv or xls file with variable name