Write to text file with a complex given format

Hy team
i m need to insert some variable to a given format in text fle but write now i m using write text file activity and it is complex handle all in a one line
can some suggest a way to make this simple

Hi @Tharusha_Fernando

Please try these steps,

  1. Write the text to text file using write text fil activity.

Varname + environment.newline + varAc + environment.newline + varAge + environment.newline +varIncome +environment.newline + environment.newline + varSply+ environment.newline + varsplyarea + environment.newline + varTrl

  1. After this use start process activity and open the text file that’s just created.

  2. Using clicks or hotkeys to enter the format in the note pad file , save the file and close.