Remove empty lines from .txt file

Hello, Team!

How can I delete empty rows from the end of a txt file?
I want the cursor to be positioned immediately after the last character of the written line.

Thank you,
image

@LZlz Can Do!

First Do a Read Text activity
then an Assign activity (Use .TrimEnd)
Finally do a Write Text activity

image

Before
image

After
image

4 Likes

Thanks!
I solved the problem with your solution :slight_smile:

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