Trouble parsing through a text file and returning found value

I am trying to read through a temp.txt file with the following contents.

Exiting the getSyntax subroutine...
Entering the getMappedBuildVersion subroutine...
Exiting the getMappedBuildVersion subroutine...
mappedVersion:  5.50.00

I have used the Write to Text File option to take the output of my perl script that I have run and wrote it to a file. I want to parse through the file and gether the value of the last line of the above file.

How to I gather the 5.50.00 value from the above file and write it to a varaible so that I can use it in the FB project that I have created?

 

thanks for all the help.

Jeff

Hi Jeff,

Please find the attached project which will use a 'File Contents Iterator' to iterate over a file and extract the version number.

Regards,
Paul.

ExtractVersion.fbz6 (2.398 KB)

Paul, that worked perfect. Thanks for the great support once again.