Save last line into variable

Hello everybody,

I am working on a project for read text files and remove headers, footers and also, save footers and use
as a folder name.
Now my question is "How can I get the last line from the text file(as a footers) and save into the variable?"

I can search the footers but can't save the value into variable.

Anyone have an idea how to do this?

Thanks for your help.

Jeegs


 

Hi Jeegs,

I've attached an example project which extracts the last line of a text file.

Regards,
Paul.
 

GetLastLine.atz3 (1.853 KB)

Hi Paul,

Thanks for the script. That works … appreciate your help.

Regards,
Jeegs.