Delete Last Line of a File
by Leonard Amabile,
in Task of the Month,
posted 12/31/69
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).
To download this sample task, please click here.
Comments (0)