Delete Last Line of a File

Delete the last line in a text file

This sample task will demonstrate how Automate can delete the last line in a text file.

The task will read the contents of a text file and then loop through each line and increment a counter variable. It will then loop through the contents again, decrementing the counter variable until it reaches the number of lines to delete. It will then write a new text file minus the deleted line(s).

Task Category:

Functions (Basic)