Write in a new line text file uipath

Hello!

I’m having the following problem:

I use some else if, whenever I move a file I must write down the name of the file moved in a txt file, however, it overwrites what has already been written, I need it to write on a line below

read the text file first, and store it in a variable say “TextFileOld” then write to a text file with the text of TextFileOld + " " + Your new text


image

1 Like

we add text to existing text with the Append Line activity

https://docs.uipath.com/activities/other/latest/workflow/append-line

1 Like

1.Use append line activity

Or

Read the text file and store it into a list of string
2.use append to list so the data which comes automatically down to it
3. Use use write text file and provide the name which you want

1 Like

@gustavo.souza

Use append line activity instead of write text

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.