How to append text in notepad?

I want to leverage Notepad as a log document to record the operating status of robot behaviors.
I tried system-file-“WriteTextFile” activity but it keeps over write previous string input in previous activity.
I also tried append, which makes more sense in using because it starts a new line and append strings. But it does not work at all.
Can anyone help me?:smiley_cat:

1 Like

@eb978xz
Try using some vb.net code like this
String data=File.ReadAllText(“filepath”)
data.append(“data to append”)
File.WriteAllText(“filepath”,data)

Hi @eb978xz,

First use read text file store it into string variable…then add your new value then use write text file activity.

Regards,
Arivu

Thanks for your reply buddy.
If I store it into as str variable and use write text file activity to input: str variable + “Desired text” the new text will be added in. But this is not what I want. In this way I need to update str variable over and over after everytime I add more text into it.
I want to use append text to start a new line each time I input.

Append line works fine.
Sorry for bothering

1 Like

Hi
This video talks about append line activity

1 Like