Remove lines in a text file

hi, some missing activities while opening the xaml. can you please share the activities.

Hello, Can anyone help how we can remove last line from text file?

Thanks in advance.

Hi @Jainsweety,

You need to read the text file using read text file activity.

Then split the string using environment.newline, it will give you string of lines
Then in a write text file activity you need to write as
(lines.Take(lines.Length - 1))
Before that delete the text file.

Thank you !!

Were you able to figure out the missing activities?

HI,
Here is a package to manage the text files. It has many activities to make use the automation .

Regards
Balamurugan.S