# Trouble parsing through a text file and returning found value

**URL:** https://www.finalbuilder.com/forums/t/trouble-parsing-through-a-text-file-and-returning-found-value/1166
**Category:** Discussion
**Created:** [April 7, 2009, 10:14am UTC](https://www.finalbuilder.com/forums/t/trouble-parsing-through-a-text-file-and-returning-found-value/1166 "2009-04-07T10:14:19Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jmagda](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/j/9e8a1a/32.png) [@jmagda](https://www.finalbuilder.com/forums/u/jmagda)
#### Post date: [April 7, 2009, 10:14am UTC](https://www.finalbuilder.com/forums/t/trouble-parsing-through-a-text-file-and-returning-found-value/1166/1 "2009-04-07T10:14:19Z")

</div>

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:&nbsp; 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?

&nbsp;

thanks for all the help.

Jeff

---

<div class="post-metadata">

### Author: ![paulsamways](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/e8c25b/32.png) [@paulsamways](https://www.finalbuilder.com/forums/u/paulsamways)
#### Post date: [April 9, 2009, 2:36am UTC](https://www.finalbuilder.com/forums/t/trouble-parsing-through-a-text-file-and-returning-found-value/1166/2 "2009-04-09T02:36:47Z")

</div>

Hi Jeff,

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

Regards,  
Paul.

[ExtractVersion.fbz6](https://www.finalbuilder.com/forums/uploads/default/original/2X/d/d8a498a6d84eea2c73d405bb92013e99c037b907.fbz6) (2.398 KB)

---

<div class="post-metadata">

### Author: ![jmagda](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/j/9e8a1a/32.png) [@jmagda](https://www.finalbuilder.com/forums/u/jmagda)
#### Post date: [April 9, 2009, 4:58am UTC](https://www.finalbuilder.com/forums/t/trouble-parsing-through-a-text-file-and-returning-found-value/1166/3 "2009-04-09T04:58:59Z")

</div>

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